diff options
Diffstat (limited to 'lua/conf/plugins/treesitter.lua')
-rw-r--r-- | lua/conf/plugins/treesitter.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/conf/plugins/treesitter.lua b/lua/conf/plugins/treesitter.lua index e473de4..4354953 100644 --- a/lua/conf/plugins/treesitter.lua +++ b/lua/conf/plugins/treesitter.lua @@ -48,7 +48,8 @@ return { "nvim-treesitter/nvim-treesitter", -- disable in big files -- TODO: update before nvim 1.0 when vim.loop is removed - local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf)) + local ok, stats = pcall(vim.loop.fs_stat, + vim.api.nvim_buf_get_name(buf)) if ok and stats and stats.size > (1024 * 100 * 10) --[[1MB]] then return true end |