added more capabilities to my nvim setup

This commit is contained in:
2026-01-19 18:45:00 -07:00
parent aa84c4997e
commit a9b956e141
18 changed files with 312 additions and 44 deletions

View File

@@ -0,0 +1,15 @@
return {
{
"nvim-treesitter/nvim-treesitter",
opts = {
highlight = {
enable = true,
disable = function(_, buf)
local max_filesize = 200 * 1024 -- 200 KB
local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
return ok and stats and stats.size > max_filesize
end,
},
},
}
}