29 lines
684 B
Lua
29 lines
684 B
Lua
-- nvim-treesitter: accurate syntax (your colorscheme maps @highlight groups).
|
|
-- We pin `master`: the default `main` branch is a rewrite (different API, Nvim 0.12+).
|
|
return {
|
|
{
|
|
'nvim-treesitter/nvim-treesitter',
|
|
branch = 'master',
|
|
lazy = false,
|
|
build = ':TSUpdate',
|
|
opts = {
|
|
ensure_installed = {
|
|
'go',
|
|
'lua',
|
|
'vim',
|
|
'vimdoc',
|
|
'query',
|
|
},
|
|
auto_install = true,
|
|
highlight = {
|
|
enable = true,
|
|
additional_vim_regex_highlighting = false,
|
|
},
|
|
indent = { enable = true },
|
|
},
|
|
config = function(_, opts)
|
|
require('nvim-treesitter.configs').setup(opts)
|
|
end,
|
|
},
|
|
}
|