From 20980c76cac31b7b7672b64f7c5fb7f3cec2c1d1 Mon Sep 17 00:00:00 2001 From: tiyn Date: Tue, 17 Mar 2026 03:22:32 +0100 Subject: [PATCH] NVIM: Updated Treesitter config for new API --- .config/nvim/lua/plugins/nvim-treesitter.lua | 29 ++++++++++++-------- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/.config/nvim/lua/plugins/nvim-treesitter.lua b/.config/nvim/lua/plugins/nvim-treesitter.lua index ca4835b..96ea786 100644 --- a/.config/nvim/lua/plugins/nvim-treesitter.lua +++ b/.config/nvim/lua/plugins/nvim-treesitter.lua @@ -9,8 +9,9 @@ return { -- 'p00f/nvim-ts-rainbow', }, config = function() - require("nvim-treesitter.config").setup({ - ensure_installed = { + local treesitter = require("nvim-treesitter") + treesitter.setup() + treesitter.install({ "bash", "css", "html", @@ -21,16 +22,20 @@ return { "rust", "lua", "yaml", - }, - -- highlight = { enable = true }, - autotag = { enable = false }, - -- rainbow = { - -- enable = true, - -- extended_mode = true, - -- max_file_lines = nil, - -- -- colors = {}, - -- -- termcolors = {} - -- } }) + require("nvim-ts-autotag").setup({ + opts = { + enable_close = true, + enable_rename = true, + } + }) + -- WARN: not directly compatible anymore + -- highlight = { enable = true }, + -- rainbow = { + -- enable = true, + -- extended_mode = true, + -- max_file_lines = nil, + -- -- colors = {}, + -- -- termcolors = {} end, }