diff options
Diffstat (limited to 'lua/treesitter.lua')
-rw-r--r-- | lua/treesitter.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lua/treesitter.lua b/lua/treesitter.lua index 0a44cc7..e10e7c6 100644 --- a/lua/treesitter.lua +++ b/lua/treesitter.lua @@ -1,6 +1,6 @@ require'nvim-treesitter.configs'.setup { -- A list of parser names, or "all" (the four listed parsers should always be installed) - ensure_installed = { "all" }, + -- ensure_installed = { "all" }, -- Install parsers synchronously (only applied to `ensure_installed`) sync_install = false, @@ -26,9 +26,9 @@ require'nvim-treesitter.configs'.setup { -- disable = { "c", "rust" }, -- Or use a function for more flexibility, e.g. to disable slow treesitter highlight for large files disable = function(lang, buf) - if lang == "vim" or lang == "lua" then - return true - end + -- if lang == "vim" or lang == "lua" then + -- return true + -- end local max_filesize = 100 * 1024 -- 100 KB local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf)) if ok and stats and stats.size > max_filesize then |