Dotfiles/site-modules/core/files/vim/plugin/treesitter.lua

17 lines
403 B
Lua
Raw Normal View History

2023-11-24 08:01:34 +00:00
require("nvim-treesitter.configs").setup {
auto_install = true,
2023-11-24 08:01:34 +00:00
playground = { enable = true },
indent = { enable = false },
rainbow = { enable = true },
highlight = {
-- `false` will disable the whole extension
enable = true,
additional_vim_regex_highlighting = true,
},
2022-06-12 19:25:17 +00:00
}
vim.opt.foldmethod = "expr"
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
vim.opt.foldenable = false