init.lua/lua/configs/treesitter.lua(view raw)
1 2 3 4 5 6 7 8 9 |
require("nvim-treesitter.configs").setup {
ensure_installed = { "lua", "go", "gomod", "python", "yaml", "comment" },
indent = { enable = true, disable = { "python", "go", "yaml", "nix" } },
highlight = { enable = true, additional_vim_regex_highlighting = false },
context_commentstring = { enable = true, enable_autocmd = false },
autopairs = { enable = true },
endwise = { enable = true },
rainbow = { enable = true },
}
|