summaryrefslogtreecommitdiff
path: root/lua/treesitter.lua
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2024-03-09 19:06:09 +0000
committerJosh Rahm <rahm@google.com>2024-03-09 19:06:09 +0000
commitfdb2f5d6d251f12f58e66d74d35aef2cdf3d5ad0 (patch)
tree1bc465328c9e323262a179d673fb5f26aadba689 /lua/treesitter.lua
parent737c49be10204e808c0129d93f8533b424ae4b87 (diff)
downloadconfig.vim-fdb2f5d6d251f12f58e66d74d35aef2cdf3d5ad0.tar.gz
config.vim-fdb2f5d6d251f12f58e66d74d35aef2cdf3d5ad0.tar.bz2
config.vim-fdb2f5d6d251f12f58e66d74d35aef2cdf3d5ad0.zip
Yet more ricing.
Diffstat (limited to 'lua/treesitter.lua')
-rw-r--r--lua/treesitter.lua8
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