mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
fix(config)!: always install parsers bundled with nvim
This commit is contained in:
parent
842507a578
commit
fe89bf1719
1 changed files with 2 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ local M = {}
|
||||||
local config = {
|
local config = {
|
||||||
modules = {},
|
modules = {},
|
||||||
sync_install = false,
|
sync_install = false,
|
||||||
ensure_installed = {},
|
ensure_installed = { "lua", "query", "vimdoc", "vim", "c", "python", "bash", "markdown", "markdown_inline" },
|
||||||
auto_install = false,
|
auto_install = false,
|
||||||
ignore_install = {},
|
ignore_install = {},
|
||||||
parser_install_dir = nil,
|
parser_install_dir = nil,
|
||||||
|
|
@ -421,6 +421,7 @@ function M.setup(user_data)
|
||||||
end
|
end
|
||||||
|
|
||||||
local ensure_installed = user_data.ensure_installed or {}
|
local ensure_installed = user_data.ensure_installed or {}
|
||||||
|
vim.list_extend(ensure_installed, config.ensure_installed)
|
||||||
if #ensure_installed > 0 then
|
if #ensure_installed > 0 then
|
||||||
if user_data.sync_install then
|
if user_data.sync_install then
|
||||||
require("nvim-treesitter.install").ensure_installed_sync(ensure_installed)
|
require("nvim-treesitter.install").ensure_installed_sync(ensure_installed)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue