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