chore: some qol crap

This commit is contained in:
Mariano Z. 2025-04-02 18:07:53 -03:00
parent 867159343a
commit 6fb744cdae
Signed by: marianozunino
GPG key ID: 4C73BAD25156DACE
34 changed files with 433 additions and 598 deletions

View file

@ -1,7 +1,6 @@
-- Create autogroups first
local MZuninoGroup = vim.api.nvim_create_augroup("mzunino", {})
local yank_group = vim.api.nvim_create_augroup("HighlightYank", {})
local bigfile_group = vim.api.nvim_create_augroup("bigfile", {})
-- Set bigfile size threshold
vim.g.bigfile_size = 1024 * 1024 * 1.5 -- 1.5 MB
@ -50,15 +49,3 @@ vim.filetype.add({
},
},
})
-- Bigfile handling
vim.api.nvim_create_autocmd("FileType", {
group = bigfile_group,
pattern = "bigfile",
callback = function(ev)
vim.b.minianimate_disable = true
vim.schedule(function()
vim.bo[ev.buf].syntax = vim.filetype.match({ buf = ev.buf }) or ""
end)
end,
})