statuscol.nvim
statuscol.nvim copied to clipboard
where is fold column?
im using nvchad newest version with this version of neovim ( compiled from source) :
NVIM v0.11.0-dev-828+g052875b9d
Build type: RelWithDebInfo
LuaJIT 2.1.1724512491
and i have this in lua/plugins/init.lua:
{
...
-- UFO & statuscol for folding
{
"kevinhwang91/nvim-ufo",
dependencies = "kevinhwang91/promise-async",
event = "BufReadPost",
config = function()
require("configs.ufo")
end,
},
{
"luukvbaal/statuscol.nvim",
event = "VeryLazy",
config = function()
require("configs.statuscol")
end,
},
...
}
and this is what i have in lua/configs/statuscol.lua
local builtin = require("statuscol.builtin")
require("statuscol").setup({
relculright = false,
segments = {
{
text = { " ", builtin.lnumfunc, " " },
click = "v:lua.ScLa",
},
{
text = { builtin.foldfunc, " " },
click = "v:lua.ScFa",
},
{
sign = {
namespace = { "diagnostic/signs" },
maxwidth = 2,
auto = true,
},
click = "v:lua.ScSa",
},
{
sign = { name = { ".*" }, maxwidth = 2, colwidth = 1, auto = true, wrap = true },
click = "v:lua.ScSa",
},
},
})
i can see line numbers column and debug breakpoints. but i dont see folding column also it might be useful to provide my lua/configs/ufo.lua:
require("ufo").setup({
provider_selector = function(bufnr, filetype, buftype)
return { "lsp", "indent" }
end,
})
I have to note that i am not setting anything else related to folding in my config. im newbie in lua and neovim so i would be thankful if someone could fix my problem
also it might be helpful to provide a picture...:
Are there folds in the buffer? The foldcolumn still follows Nvim's 'foldcolumn' option so make sure it is not disabled.
Note that 'foldolumn' is disabled by default, so I just had the same problem as OP and after enabling it, it worked.