fix: better fold
This commit is contained in:
parent
67df812bec
commit
640176cad2
7 changed files with 45 additions and 47 deletions
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