diff --git a/config/nvim/lua/fschauen/plugins/treesitter.lua b/config/nvim/lua/fschauen/plugins/treesitter.lua index 3b6deed..bd53c78 100644 --- a/config/nvim/lua/fschauen/plugins/treesitter.lua +++ b/config/nvim/lua/fschauen/plugins/treesitter.lua @@ -6,27 +6,17 @@ M.dependencies = { 'nvim-treesitter/playground', } -M.event = { - 'BufReadPost', - 'BufNewFile' -} - -M.cmd = { - 'TSInstall', - 'TSUninstall', - 'TSUpdate', - 'TSUpdateSync', - 'TSInstallInfo', - 'TSInstallSync', - 'TSInstallFromGrammar', -} - M.keys = { { 'tp', 'TSPlaygroundToggle' }, { 'th', 'TSHighlightCapturesUnderCursor' }, { 'tn', 'TSNodeUnderCursor' }, } +-- When lazy loading treesitter, I get a problem when I open the first file +-- using Telescope: treesitter is used correctly in the previewer but is broken +-- afterwards. +M.lazy = false + M.config = function() require('nvim-treesitter.configs').setup { ensure_installed = {