mirror of
https://github.com/marianozunino/nvim.git
synced 2025-06-28 18:43:50 -03:00
chore: some qol crap
This commit is contained in:
parent
867159343a
commit
6fb744cdae
34 changed files with 433 additions and 598 deletions
|
@ -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,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue