From fb123ea928f74b7f0f980a03af75488ce7c7fdfd Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sat, 21 Feb 2026 18:40:56 +0000 Subject: [PATCH] nvim: treesitter.configs has stopped working --- nvim/lua/plugins/treesitter.lua | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/nvim/lua/plugins/treesitter.lua b/nvim/lua/plugins/treesitter.lua index c77d735..78eefc3 100644 --- a/nvim/lua/plugins/treesitter.lua +++ b/nvim/lua/plugins/treesitter.lua @@ -2,13 +2,9 @@ return { 'nvim-treesitter/nvim-treesitter', build = ':TSUpdate', config = function() - local configs = require('nvim-treesitter.configs') - - configs.setup { - ensure_installed = { 'c', 'cpp', 'lua', 'vimdoc', 'luadoc', 'vim', 'markdown' }, - sync_install = false, - highlight = { enable = true }, - indent = { enable = false } - } + vim.api.nvim_create_autocmd('FileType', { + pattern = { 'c' }, + callback = function() vim.treesitter.start() end, + }) end }