signify cmds for git

This commit is contained in:
Christian Nieves
2025-03-14 13:45:12 +00:00
parent 4c5bd3505f
commit 758afadb6f
2 changed files with 63 additions and 52 deletions

View File

@ -1,16 +1,27 @@
return {
"LunarVim/bigfile.nvim",
opts = {
filesize = 2, -- size of the file in MiB, the plugin round file sizes to the closest MiB
pattern = { "*" }, -- autocmd pattern or function see <### Overriding the detection of big files>
features = { -- features to disable
filesize = 2, -- size of the file in MiB, the plugin round file sizes to the closest MiB
pattern = function(bufnr, filesize_mib)
vim.cmd(":NoAutoFormatBuffer")
vim.cmd(":FormatDisable")
-- you can't use `nvim_buf_line_count` because this runs on BufReadPre
local file_contents = vim.fn.readfile(vim.api.nvim_buf_get_name(bufnr))
local file_lines = #file_contents
local filetype = vim.filetype.match({ buf = bufnr })
if file_lines > 1000 and (filetype == "c" or filetype == "cpp") then
return true
end
return filesize_mib > 1
end,
features = { -- features to disable
"indent_blankline",
"illuminate",
-- "illuminate",
"lsp",
"treesitter",
"syntax",
"matchparen",
"vimopts",
-- "syntax",
-- "matchparen",
-- "vimopts",
"filetype",
},
}