switch to treesitter main

This commit is contained in:
2025-09-17 21:03:43 +02:00
parent 4b30405afb
commit 9fa945939d
2 changed files with 25 additions and 45 deletions

View File

@@ -1,30 +1,11 @@
return {
'nvim-treesitter/nvim-treesitter',
version = false,
lazy = false,
branch = 'main',
build = ':TSUpdate',
config = function()
require('nvim-treesitter.install').compilers = { 'clang' }
require('nvim-treesitter.configs').setup({
ensure_installed = '',
modules = {},
sync_install = true,
auto_install = true,
ignore_install = {},
highlight = {
enable = true,
additional_vim_regex_highlighting = { 'markdown' },
},
rainbow = {
enable = true,
extended_mode = true, -- Also highlight non-bracket delimiters like html tags, boolean or table: lang -> boolean
max_file_lines = nil, -- Do not enable for files with more than n lines, int
-- colors = {}, -- table of hex strings
-- termcolors = {} -- table of colour name strings
},
indent = {
enable = false, -- maybe buggy
},
})
require('nvim-treesitter').setup({})
vim.treesitter.language.register('groovy', 'java')
require('nvim-treesitter.install').prefer_git = false
end,