25 lines
508 B
Lua
25 lines
508 B
Lua
|
return {
|
||
|
"nvim-treesitter/nvim-treesitter",
|
||
|
build = ":TSUpdate",
|
||
|
init = function()
|
||
|
require("nvim-treesitter.configs").setup({
|
||
|
-- A list of parser names, or "all"
|
||
|
ensure_installed = {
|
||
|
"nix",
|
||
|
"lua",
|
||
|
"vim",
|
||
|
},
|
||
|
|
||
|
-- Install parsers synchronously (only applied to `ensure_installed`)
|
||
|
sync_install = false,
|
||
|
auto_install = true,
|
||
|
highlight = {
|
||
|
enable = true,
|
||
|
},
|
||
|
indent = {
|
||
|
enable = true,
|
||
|
},
|
||
|
})
|
||
|
end,
|
||
|
}
|