nvim bugfix coloring bigfiles
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user