Dotfiles/site-modules/core/files/vim/plugin/treesitter.lua
Ade Attwood b1746b0178 feat(vim): auto install treesitter grammars
Previously we were defining what ones we want to install. Now we are say
we want to install the grammar when we go to a file. If we don't have
that grammar installed then we will install it then
2024-04-10 19:17:42 +01:00

16 lines
403 B
Lua

require("nvim-treesitter.configs").setup {
auto_install = true,
playground = { enable = true },
indent = { enable = false },
rainbow = { enable = true },
highlight = {
-- `false` will disable the whole extension
enable = true,
additional_vim_regex_highlighting = true,
},
}
vim.opt.foldmethod = "expr"
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
vim.opt.foldenable = false