fix(plugins): protect ensure_installed table from community packs
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user