nvim bugfix coloring bigfiles

This commit is contained in:
Henrik Bakken
2026-03-20 01:09:20 +01:00
parent bd2c3c5303
commit a9f9a69887
-9
View File
@@ -1084,15 +1084,6 @@ local function makespec_snacks()
notify = true, -- show notification when big file detected
size = 1.5 * 1024 * 1024, -- 1.5MB
line_length = 1000, -- average line length (useful for minified files)
-- Enable or disable features when big file detected
---@param ctx {buf: number, ft:string}
setup = function(ctx)
if vim.fn.exists(":NoMatchParen") ~= 0 then vim.cmd([[NoMatchParen]]) end
Snacks.util.wo(0, { foldmethod = "manual", statuscolumn = "", conceallevel = 0 })
vim.schedule(function()
if vim.api.nvim_buf_is_valid(ctx.buf) then vim.bo[ctx.buf].syntax = ctx.ft end
end)
end,
},
bufdelete = { enabled = true },
debug = { enabled = true },