aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua21
1 files changed, 17 insertions, 4 deletions
diff --git a/init.lua b/init.lua
index 164a954..7bbf57e 100644
--- a/init.lua
+++ b/init.lua
@@ -1,4 +1,17 @@
-require("pml68.settings")
-require("pml68.remap")
-require("pml68.lsp")
-require("pml68.lazy")
+vim.loader.enable()
+
+vim.api.nvim_create_autocmd("PackChanged", {
+ callback = function(ev)
+ local name, kind = ev.data.spec.name, ev.data.kind
+
+ if name == "nvim-treesitter" and kind == "update" then
+ if not ev.data.active then vim.cmd.packadd("nvim-treesitter") end
+ vim.cmd("TSUpdate")
+ end
+
+ if name == "mason.nvim" and kind == "update" then
+ if not ev.data.active then vim.cmd.packadd("mason.nvim") end
+ vim.cmd("MasonInstallAll")
+ end
+ end
+})