mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 03:56:52 -04:00
fixup: empty ensure_installed
This commit is contained in:
parent
7b326a0962
commit
07c8c3d84f
1 changed files with 1 additions and 1 deletions
|
|
@ -420,7 +420,7 @@ function M.setup(user_data)
|
|||
require("nvim-treesitter.install").setup_auto_install()
|
||||
end
|
||||
|
||||
local ensure_installed = user_data.ensure_installed or {}
|
||||
local ensure_installed = user_data.ensure_installed or config.ensure_installed
|
||||
if type(ensure_installed) == "table" and type(config.ensure_installed) == "table" then
|
||||
vim.list_extend(ensure_installed, config.ensure_installed)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue