fix: better fold
This commit is contained in:
parent
67df812bec
commit
640176cad2
7 changed files with 45 additions and 47 deletions
|
|
@ -1,10 +0,0 @@
|
|||
local highlight = {
|
||||
"CatppuccinRed",
|
||||
"CatppuccinPeach",
|
||||
"CatppuccinYellow",
|
||||
"CatppuccinGreen",
|
||||
"CatppuccinBlue",
|
||||
"CatppuccinPurple",
|
||||
}
|
||||
|
||||
return highlight
|
||||
|
|
@ -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,
|
||||
}
|
||||
20
lua/custom/plugins/nvim-ufo.lua
Normal file
20
lua/custom/plugins/nvim-ufo.lua
Normal 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,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue