feat: add bigfile plugin

This commit is contained in:
Kristofers Solo
2024-02-01 01:12:25 +02:00
parent 6ac678077e
commit 61b013792e
7 changed files with 40 additions and 85 deletions

View File

@@ -45,14 +45,6 @@ return {
-- Using this option may slow down your editor, and you may see some duplicate highlights.
-- Instead of true it can also be a list of languages
additional_vim_regex_highlighting = true,
disable = function(lang, buf)
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
return true
end
end,
},
indent = {
enable = true,