From 726ce0c964f7d17d1cb2cb88511ad1463a6ab6cd Mon Sep 17 00:00:00 2001 From: Marcus Bergo Date: Fri, 20 Feb 2026 08:59:34 -0300 Subject: [PATCH] Fix treesitter setup and Mason Lua package Apply the Neovim config fixes for current plugin APIs:\n- replace deprecated nvim-treesitter install call with configs.setup --- init.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index d5ae6dc9b2a..678b95ef9de 100644 --- a/init.lua +++ b/init.lua @@ -614,7 +614,7 @@ require('lazy').setup({ -- You can press `g?` for help in this menu. local ensure_installed = vim.tbl_keys(servers or {}) vim.list_extend(ensure_installed, { - 'lua_ls', -- Lua Language server + 'lua-language-server', -- Mason package for lua_ls 'stylua', -- Used to format Lua code -- You can add other tools here that you want Mason to install }) @@ -853,7 +853,11 @@ require('lazy').setup({ 'nvim-treesitter/nvim-treesitter', config = function() local filetypes = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc' } - require('nvim-treesitter').install(filetypes) + require('nvim-treesitter.configs').setup { + ensure_installed = filetypes, + auto_install = true, + highlight = { enable = true }, + } vim.api.nvim_create_autocmd('FileType', { pattern = filetypes, callback = function() vim.treesitter.start() end,