fix: better fold

This commit is contained in:
alzalia1 2025-08-17 17:42:12 +02:00
parent 67df812bec
commit 640176cad2
7 changed files with 45 additions and 47 deletions

View file

@ -1,13 +0,0 @@
return {
"chrisgrieser/nvim-origami",
event = "VeryLazy",
opts = {
foldKeymaps = { setup = false },
}, -- needed even when using default config
-- recommended: disable vim's auto-folding
init = function()
vim.opt.foldlevel = 99
vim.opt.foldlevelstart = 99
end,
}

View file

@ -0,0 +1,20 @@
return {
"kevinhwang91/nvim-ufo",
event = "BufReadPost",
dependencies = {
"kevinhwang91/promise-async",
"nvim-treesitter/nvim-treesitter",
},
init = function()
vim.o.foldenable = true
vim.o.foldcolumn = "auto:9"
vim.o.foldlevel = 99
vim.o.foldlevelstart = 99
vim.o.fillchars = "eob: ,fold: ,foldopen:,foldsep:│,foldclose:"
end,
opts = {
provider_selector = function()
return { "treesitter", "indent" }
end,
},
}