aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins/opts/treesitter.lua
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-03-05 09:30:28 +0530
committersinanmohd <sinan@sinanmohd.com>2024-03-05 09:30:35 +0530
commitc1a1addb4987c6b8642df060848fd86e31fc564b (patch)
treec6fa0c7e082f9ef8c188ea7d1e5aa00253471039 /lua/plugins/opts/treesitter.lua
parent7c3ef11e2ed4e8cdefe1cb80fd4837e1eb037d6c (diff)
fmt: set column_width to 80, sort require
Diffstat (limited to 'lua/plugins/opts/treesitter.lua')
-rw-r--r--lua/plugins/opts/treesitter.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/plugins/opts/treesitter.lua b/lua/plugins/opts/treesitter.lua
index ebcdf62..b9ec31a 100644
--- a/lua/plugins/opts/treesitter.lua
+++ b/lua/plugins/opts/treesitter.lua
@@ -27,7 +27,8 @@ return {
-- disable for > 100 KB files
disable = function(_, buf)
local max_filesize = 100 * 1024 -- 100 KB
- 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 > max_filesize then
return true
end