From 08e97fd430e53874773e42d7077d21333c459528 Mon Sep 17 00:00:00 2001 From: Maxime PIERRONT Date: Mon, 16 Feb 2026 09:37:09 +0100 Subject: [PATCH] fix: replace deprecated nvim-treesitter.configs with opts for v1.0 compatibility --- init.lua | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/init.lua b/init.lua index 3bd566b4..c6142390 100644 --- a/init.lua +++ b/init.lua @@ -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