fix(treesitter): dont add to ensure_installed when "all". Fixes #98

This commit is contained in:
Folke Lemaitre committed 2023-01-22 10:36:49 +01:00
1 parent ed554160bc
commit 280f4cf299
2 files changed
+6 -2

No files matched your search

+3 -1
View File
@@ -4,7 +4,9 @@ return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
vim.list_extend(opts.ensure_installed, { "json", "json5", "jsonc" })
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "json", "json5", "jsonc" })
end
end,
},
@@ -4,7 +4,9 @@ return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
vim.list_extend(opts.ensure_installed, { "typescript", "tsx" })
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "typescript", "tsx" })
end
end,
},