add nvim config

This commit is contained in:
2026-01-15 08:25:49 +01:00
parent ec44f7a597
commit d74417b8e2
46 changed files with 1786 additions and 5 deletions

View File

@@ -0,0 +1,33 @@
return {
{ -- Highlight, edit, and navigate code
'nvim-treesitter/nvim-treesitter',
build = ':TSUpdate',
tag = 'v0.10.0',
opts = {
ensure_installed = {
'lua',
'luadoc',
'vim',
'vimdoc',
'bash',
-- Go ecosystem
'go',
'gomod',
'gowork',
'gosum'
},
-- Autoinstall languages that are not installed
auto_install = true,
highlight = {
enable = true,
additional_vim_regex_highlighting = { 'ruby' },
},
indent = { enable = true, disable = { 'ruby' } },
},
config = function(_, opts)
require('nvim-treesitter.install').prefer_git = true
---@diagnostic disable-next-line: missing-fields
require('nvim-treesitter.configs').setup(opts)
end,
},
}