nvim/lua/plugins/nvim-treesitter.lua

24 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,
}