big changes on neovim

This commit is contained in:
afoucaultc 2026-07-07 10:37:27 +02:00
parent cddb6edde7
commit 6d492f07ba
26 changed files with 242 additions and 291 deletions

View file

@ -1,39 +1,27 @@
return {
{ -- Highlight, edit, and navigate code
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
opts = {
ensure_installed = {
"c++",
"matlab",
"regex",
"octave",
"yaml",
"python",
"latex",
"typst",
"zsh",
"markdown_inline",
"typst",
"comment",
"bash",
"c",
"html",
"lua",
"markdown",
"vim",
"vimdoc",
},
auto_install = true,
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
-- Some languages depend on vim's regex highlighting system (such as Ruby) for indent rules.
-- If you are experiencing weird indenting issues, add the language to
-- the list of additional_vim_regex_highlighting and disabled languages for indent.
additional_vim_regex_highlighting = { "ruby", "markdown" },
},
indent = { enable = true, disable = { "ruby, markdown" } },
},
},
"nvim-treesitter/nvim-treesitter",
branch = "main",
build = ":TSUpdate",
config = function()
require("nvim-treesitter").setup({})
require("nvim-treesitter").install({
"cpp",
"matlab",
"regex",
"yaml",
"python",
"latex",
"typst",
"markdown_inline",
"comment",
"bash",
"c",
"html",
"lua",
"markdown",
"nix",
"vim",
"vimdoc",
})
end,
}