mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-05 11:18:26 +00:00
feat(bigfile): disable matchparen, set foldmethod=manual, set conceallevel=0
This commit is contained in:
parent
85f51320b2
commit
891648a483
1 changed files with 2 additions and 0 deletions
|
@ -9,6 +9,8 @@ local defaults = {
|
||||||
-- Enable or disable features when big file detected
|
-- Enable or disable features when big file detected
|
||||||
---@param ctx {buf: number, ft:string}
|
---@param ctx {buf: number, ft:string}
|
||||||
setup = function(ctx)
|
setup = function(ctx)
|
||||||
|
vim.cmd([[NoMatchParen]])
|
||||||
|
Snacks.util.wo(0, { foldmethod = "manual", statuscolumn = "", conceallevel = 0 })
|
||||||
vim.b.minianimate_disable = true
|
vim.b.minianimate_disable = true
|
||||||
vim.schedule(function()
|
vim.schedule(function()
|
||||||
vim.bo[ctx.buf].syntax = ctx.ft
|
vim.bo[ctx.buf].syntax = ctx.ft
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue