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
16 lines
403 B
Lua
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
|