mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 21:40:03 -04:00
fixup: ensure_installed can be 'all'
This commit is contained in:
parent
fe89bf1719
commit
97ba59c6f5
1 changed files with 3 additions and 1 deletions
|
|
@ -421,7 +421,9 @@ function M.setup(user_data)
|
|||
end
|
||||
|
||||
local ensure_installed = user_data.ensure_installed or {}
|
||||
vim.list_extend(ensure_installed, config.ensure_installed)
|
||||
if type(ensure_installed) == "table" then
|
||||
vim.list_extend(ensure_installed, config.ensure_installed)
|
||||
end
|
||||
if #ensure_installed > 0 then
|
||||
if user_data.sync_install then
|
||||
require("nvim-treesitter.install").ensure_installed_sync(ensure_installed)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue