migrate nvim config to 0.12.0: vim.pack, ui2, snacks -> mini, just general spring cleaning
This commit is contained in:
parent
d1178fbe59
commit
14b1a9b057
70 changed files with 1081 additions and 1483 deletions
11
nvim/plugin/00-hooks.lua
Normal file
11
nvim/plugin/00-hooks.lua
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
vim.api.nvim_create_autocmd("PackChanged", {
|
||||
callback = function(ev)
|
||||
local name = ev.data.spec.name
|
||||
local kind = ev.data.kind
|
||||
|
||||
if name == "nvim-treesitter" and (kind == "install" or kind == "update") then
|
||||
if not ev.data.active then vim.cmd.packadd("nvim-treesitter") end
|
||||
vim.cmd("TSUpdate")
|
||||
end
|
||||
end,
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue