From e830931ff421e4380d5de8b1926842000ba9be34 Mon Sep 17 00:00:00 2001 From: Squibid Date: Sat, 31 May 2025 03:32:58 -0400 Subject: wozers --- lua/conf/plugins/treesitter.lua | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'lua/conf/plugins/treesitter.lua') diff --git a/lua/conf/plugins/treesitter.lua b/lua/conf/plugins/treesitter.lua index 4354953..17893b3 100644 --- a/lua/conf/plugins/treesitter.lua +++ b/lua/conf/plugins/treesitter.lua @@ -1,12 +1,3 @@ -table.contains = function(self, string) - for _, v in pairs(self) do - if v == string then - return true - end - end - return false -end - return { "nvim-treesitter/nvim-treesitter", disable = not vim.fn.has("nvim-0.10.0"), config = function() @@ -47,8 +38,7 @@ return { "nvim-treesitter/nvim-treesitter", end -- disable in big files - -- TODO: update before nvim 1.0 when vim.loop is removed - local ok, stats = pcall(vim.loop.fs_stat, + local ok, stats = pcall(vim.uv.fs_stat, vim.api.nvim_buf_get_name(buf)) if ok and stats and stats.size > (1024 * 100 * 10) --[[1MB]] then return true -- cgit v1.2.1