diff --git a/.gitmodules b/.gitmodules index b34d4d0..6b3380b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -7,6 +7,3 @@ [submodule "pack/vendor/start/neogit"] path = pack/vendor/start/neogit url = https://github.com/NeogitOrg/neogit.git -[submodule "pack/vendor/start/vimwiki"] - path = pack/vendor/start/vimwiki - url = https://github.com/vimwiki/vimwiki.git diff --git a/init.lua b/init.lua index 4247e2c..5ec1df5 100644 --- a/init.lua +++ b/init.lua @@ -1,9 +1,6 @@ -- Core configuration require "core" --- Plugin configuration -require "plugins" - -- Theme vim.cmd [[ hi Normal guibg=none diff --git a/lua/core/autocmds.lua b/lua/core/autocmds.lua index 0ae364f..ebdc4c1 100644 --- a/lua/core/autocmds.lua +++ b/lua/core/autocmds.lua @@ -1,17 +1,17 @@ local api = vim.api api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, { - pattern = { "*.rs" }, + pattern = "*.rs", command = "compiler cargo" }) api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, { - pattern = { "*.go" }, + pattern = "*.go", command = "Tabs 4" }) api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, { - pattern = { "*.dart" }, + pattern = "*.dart", callback = function() vim.cmd [[Spaces 2]] vim.cmd [[compiler dart]] @@ -22,3 +22,8 @@ api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, { pattern = "*.md", command = "set conceallevel=3" }) + +api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, { + pattern = { "*.ts", "*.tsc" }, + command = "compiler tsc" +}) diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua deleted file mode 100644 index 2ca883d..0000000 --- a/lua/plugins/init.lua +++ /dev/null @@ -1 +0,0 @@ -require "plugins.vimwiki" diff --git a/lua/plugins/vimwiki.lua b/lua/plugins/vimwiki.lua deleted file mode 100644 index 1792974..0000000 --- a/lua/plugins/vimwiki.lua +++ /dev/null @@ -1,5 +0,0 @@ -local g = vim.g - -g.vimwiki_list = { - { path = "~/Documents/Notes/vimwiki", index = "index" } -} diff --git a/pack/vendor/start/vimwiki b/pack/vendor/start/vimwiki deleted file mode 160000 index 7279261..0000000 --- a/pack/vendor/start/vimwiki +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 72792615e739d0eb54a9c8f7e0a46a6e2407c9e8