fix: replace deprecated nvim-treesitter.configs with opts for v1.0 compatibility

This commit is contained in:
Maxime PIERRONT 2026-02-16 09:37:09 +01:00
parent d4d7352784
commit 08e97fd430
1 changed files with 6 additions and 9 deletions

View File

@ -994,15 +994,12 @@ require('lazy').setup({
{ -- Highlight, edit, and navigate code
'nvim-treesitter/nvim-treesitter',
build = ':TSUpdate',
config = function()
---@diagnostic disable-next-line: missing-fields
require('nvim-treesitter.configs').setup {
ensure_installed = { 'bash', 'c', 'css', 'diff', 'html', 'java', 'javascript', 'json', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'tsx', 'typescript', 'vim', 'vimdoc', 'vue' },
auto_install = true,
highlight = { enable = true },
indent = { enable = true },
}
end,
opts = {
ensure_installed = { 'bash', 'c', 'css', 'diff', 'html', 'java', 'javascript', 'json', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'tsx', 'typescript', 'vim', 'vimdoc', 'vue' },
auto_install = true,
highlight = { enable = true },
indent = { enable = true },
},
},
-- The following comments only work if you have downloaded the kickstart repo, not just copy pasted the