Fold Column, remove depth digits #139
-
I think those numbers in the image bellow are depth digits, right? How to remove them? I've used the default setup and they didn't go away. I've found this plugin by chance looking for a solution for this. Thanks for the help. |
Beta Was this translation helpful? Give feedback.
Answered by
luukvbaal
Sep 9, 2024
Replies: 1 comment 3 replies
-
The builtin foldfunc segment hides the foldcolumn digits so your config should include that. This is what I use: local builtin = require("statuscol.builtin")
require("statuscol").setup({
bt_ignore = {"terminal", "nofile"},
relculright = true,
segments = {
{text = {builtin.foldfunc}, click = "v:lua.ScFa"},
{
sign = {namespace = {"diagnostic"}, maxwidth = 1, colwidth = 2, auto = true, foldclosed = true},
click = "v:lua.ScSa"
},
{text = {builtin.lnumfunc}, click = "v:lua.ScLa"},
{
sign = {name = {".*"}, text = {".*"}, maxwidth = 2, colwidth = 1, auto = true, foldclosed = true},
click = "v:lua.ScSa",
},
{
sign = {namespace = {"gitsigns"}, fillchar = "│", maxwidth = 1, colwidth = 1, wrap = true, foldclosed = true},
click = "v:lua.ScSa",
},
},
}) |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
augustocdias
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The builtin foldfunc segment hides the foldcolumn digits so your config should include that. This is what I use: