24 lines
898 B
Lua
24 lines
898 B
Lua
return {
|
|
"nvim-treesitter/nvim-treesitter",
|
|
opts = {
|
|
-- A list of parser names, or "all" (the listed parsers MUST always be installed)
|
|
ensure_installed = { "c", "lua", "vim", "vimdoc", "query" },
|
|
|
|
-- Install parsers synchronously (only applied to `ensure_installed`)
|
|
sync_install = true,
|
|
|
|
-- Automatically install missing parsers when entering buffer
|
|
-- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
|
|
auto_install = false,
|
|
|
|
-- List of parsers to ignore installing (or "all")
|
|
|
|
---- If you need to change the installation directory of the parsers (see -> Advanced Setup)
|
|
-- parser_install_dir = "/some/path/to/store/parsers", -- Remember to run vim.opt.runtimepath:append("/some/path/to/store/parsers")!
|
|
highlight = { enable = true },
|
|
},
|
|
config = function(_, opts)
|
|
require("nvim-treesitter.configs").setup(opts)
|
|
end,
|
|
version = "*",
|
|
}
|