nvim: Fix treesitter config
This commit is contained in:
parent
924ba5c280
commit
ffb7d66888
@ -1,23 +1,29 @@
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
branch = 'main',
|
||||
lazy = false, -- This plugin does not support lazy loading
|
||||
build = ":TSUpdate",
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"cpp",
|
||||
"c",
|
||||
"python",
|
||||
"rust",
|
||||
"lua",
|
||||
"markdown",
|
||||
"vimdoc",
|
||||
},
|
||||
auto_install = true,
|
||||
highlight = {
|
||||
enable = true,
|
||||
-- TODO: Is this required?
|
||||
additional_vim_regex_highlighting = { "latex" } -- Required for vimtex
|
||||
}
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
build = ":TSUpdate",
|
||||
branxh = "main",
|
||||
lazy = false, -- This plugin doesn't support lazy loading
|
||||
config = function(_, opts)
|
||||
require("nvim-treesitter.configs").setup({
|
||||
ensure_installed = {
|
||||
"cpp",
|
||||
"c",
|
||||
"lua",
|
||||
"vim",
|
||||
"vimdoc",
|
||||
"query"
|
||||
},
|
||||
sync_install = false,
|
||||
auto_install = true,
|
||||
highlight = {
|
||||
-- disable = { "latex" },
|
||||
enable = true,
|
||||
additional_vim_regex_highlighting = {
|
||||
"latex"
|
||||
}
|
||||
}
|
||||
})
|
||||
end
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user