update for new nvim-treesitter api

This commit is contained in:
2026-05-31 09:39:27 +02:00
parent 9e2c7331dd
commit a5224c2374

View File

@@ -27,16 +27,11 @@ end
vim.cmd([[colorscheme gruvbox]])
require 'nvim-treesitter.configs'.setup {
highlight = { enable = true, disable = {} },
indent = { enable = false, disable = {} },
rainbow = {
enable = true,
extended_mode = true,
max_file_lines = 1000,
colors = { '#ff0000', '#0051a0', '#ffa500', '#ffff00', '#008000', '#8003f2' }
}
}
vim.api.nvim_create_autocmd('FileType', {
callback = function(args)
pcall(vim.treesitter.start, args.buf)
end,
})
-- Mappings.
-- See `:help vim.diagnostic.*` for documentation on any of the below functions