summaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-01-17 11:01:24 +0100
committerChristian Clason <c.clason@uni-graz.at>2024-01-17 11:01:24 +0100
commit7b326a096241267bdb3412457a97d3ae834b0a7c (patch)
tree8c725b0f6887247669495f2f1f7edcbb7a7c80dc /lua
parentUpdate parsers: gleam, gomod, wing (diff)
downloadnvim-treesitter-7b326a096241267bdb3412457a97d3ae834b0a7c.tar
nvim-treesitter-7b326a096241267bdb3412457a97d3ae834b0a7c.tar.gz
nvim-treesitter-7b326a096241267bdb3412457a97d3ae834b0a7c.tar.bz2
nvim-treesitter-7b326a096241267bdb3412457a97d3ae834b0a7c.tar.lz
nvim-treesitter-7b326a096241267bdb3412457a97d3ae834b0a7c.tar.xz
nvim-treesitter-7b326a096241267bdb3412457a97d3ae834b0a7c.tar.zst
nvim-treesitter-7b326a096241267bdb3412457a97d3ae834b0a7c.zip
fixup: don't extend _with_ 'all'
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/configs.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/configs.lua b/lua/nvim-treesitter/configs.lua
index 8d720cd96..d4f87a539 100644
--- a/lua/nvim-treesitter/configs.lua
+++ b/lua/nvim-treesitter/configs.lua
@@ -421,7 +421,7 @@ function M.setup(user_data)
end
local ensure_installed = user_data.ensure_installed or {}
- if type(ensure_installed) == "table" then
+ if type(ensure_installed) == "table" and type(config.ensure_installed) == "table" then
vim.list_extend(ensure_installed, config.ensure_installed)
end
if #ensure_installed > 0 then