Closed NoamMuallem closed 1 year ago
If someone finds it and don't want to read 100 comments on #4.
To remove it completely:
vim.o.foldcolumn = "0"
To have foldcolumn like in demo video:
vim.o.fillchars = [[eob: ,fold: ,foldopen:,foldsep: ,foldclose:]]
If someone finds it and don't want to read 100 comments on #4.
To remove it completely:
vim.o.foldcolumn = "0"
To have foldcolumn like in demo video:
vim.o.fillchars = [[eob: ,fold: ,foldopen:,foldsep: ,foldclose:]]
But the side folding arrows/lines won't show up if the foldcolumn is 0
If someone still looks for an answer, this config in this plugin statuscol.nvim
removes the numbers while the arrows are still there on the same column:
{
'luukvbaal/statuscol.nvim',
opts = function()
local builtin = require('statuscol.builtin')
return {
setopt = true,
-- override the default list of segments with:
-- number-less fold indicator, then signs, then line number & separator
segments = {
{ text = { builtin.foldfunc }, click = 'v:lua.ScFa' },
{ text = { '%s' }, click = 'v:lua.ScSa' },
{
text = { builtin.lnumfunc, ' ' },
condition = { true, builtin.not_empty },
click = 'v:lua.ScLa',
},
},
}
end,
}
Neovim version (nvim -v | head -n1)
NVIM v0.8.0
Operating system/version
macOS Monterey 12.6.1
How to reproduce the issue
cat mini.lua
-- Setting vim.o.foldcolumn = '1' vim.o.foldlevel = 99 vim.o.foldlevelstart = -1 vim.o.foldenable = true
local ufo = require('ufo') ufo.setup() vim.keymap.set('n', 'zR', ufo.openAllFolds) vim.keymap.set('n', 'zM', ufo.closeAllFolds)