fix(plugins): protect ensure_installed table from community packs

This commit is contained in:
Micah Halter
2023-04-28 09:56:43 -04:00
parent 23c505c58a
commit 01ac6de9a9
2 changed files with 29 additions and 12 deletions

View File

@@ -1,6 +1,10 @@
return {
"nvim-treesitter/nvim-treesitter",
opts = {
-- ensure_installed = { "lua" },
},
opts = function(_, opts)
-- add more things to the ensure_installed table protecting against community packs modifying it
if not opts.ensure_installed then opts.ensure_installed = {} end
require("astronvim.utils").list_insert_unique(opts.ensure_installed, {
-- "lua"
})
end,
}