feat(ufo): change fillchar fold separation symbol + set auto fold columns

This commit is contained in:
doryan 2024-10-21 22:00:52 +04:00
parent e814d8a32f
commit 3222addaea

View File

@ -1,8 +1,8 @@
vim.o.foldcolumn = '1' -- '0' is not bad vim.o.foldcolumn = "auto:9" -- '0' is not bad
vim.o.foldlevel = 99 -- Using ufo provider need a large value, feel free to decrease the value vim.o.foldlevel = 99 -- Using ufo provider need a large value, feel free to decrease the value
vim.o.foldlevelstart = 99 vim.o.foldlevelstart = 99
vim.o.foldenable = true vim.o.foldenable = true
vim.o.fillchars = [[eob: ,fold: ,foldopen:󰅀,foldsep:,foldclose:󰅂]] vim.o.fillchars = [[eob: ,fold: ,foldopen:󰅀,foldsep:,foldclose:󰅂]]
-- Using ufo provider need remap `zR` and `zM`. If Neovim is 0.6.1, remap yourself -- Using ufo provider need remap `zR` and `zM`. If Neovim is 0.6.1, remap yourself
vim.keymap.set('n', 'zR', require('ufo').openAllFolds) vim.keymap.set('n', 'zR', require('ufo').openAllFolds)