BREAKING CHANGE: Migrate to nvim-treesitter main branch #3295
Users must now use the :TSInstallAll command to install all treesitter parsers defined in their config. So there's no automatic downloading of treesitter parsers like before tree-sitter-cli is a required dependency now --------- Co-authored-by: siduck <siduck@tutanota.com>
This commit is contained in:
co-authored by
siduck
parent
30e75dbbdf
commit
6a0715d3f3
@@ -156,15 +156,11 @@ return {
|
||||
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
branch = "master",
|
||||
event = { "BufReadPost", "BufNewFile" },
|
||||
cmd = { "TSInstall", "TSBufEnable", "TSBufDisable", "TSModuleInfo" },
|
||||
build = ":TSUpdate",
|
||||
build = ":TSUpdate | TSInstallAll",
|
||||
opts = function()
|
||||
return require "nvchad.configs.treesitter"
|
||||
end,
|
||||
config = function(_, opts)
|
||||
require("nvim-treesitter.configs").setup(opts)
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user