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 }