luukvbaal/statuscol.nvim

Fold numbers hiding

niksingh710 opened this issue · 3 comments

i went through a few issues e.g #3
currently i am using arch linux with nvim --version: v0.9.5 also tried it on the git version which was 0.10

image

a few folds are not showing numbers but a few are showing.
as in the image it is visible that few folds does not show numbers and few does.

local builtin = require("statuscol.builtin")
	require("statuscol").setup({
		relculright = true,
		segments = {
		 	{ text = { "%s" }, click = "v:lua.ScSa" },
		 	{ text = { builtin.lnumfunc }, click = "v:lua.ScLa" },
		 	{ text = { " ", builtin.foldfunc, " " }, click = "v:lua.ScFa" },
		},
		foldfunc = "builtin",
		setopt = true,
	})

builtin.foldfunc does not draw any digits, so I don't think that 'statuscolumn' is even set in your screenshot. Are you sure the plugin is loaded correctly? What does :set stc? say?

cfg.foldfunc was deprecated, so foldfunc = "builtin" is not necessary. Neither is setopt = true (it is true by default).

builtin.foldfunc does not draw any digits, so I don't think that 'statuscolumn' is even set in your screenshot. Are you sure the plugin is loaded correctly? What does :set stc? say?

cfg.foldfunc was deprecated, so foldfunc = "builtin" is not necessary. Neither is setopt = true (it is true by default).

on checking set stc it was clear that the statuscolumn is not set setting it to a event="verylazy" in lazy nvim worked.

thanks for the reply.

can you just tell me if it is possible to move the fold arrows from the left of the numbers to the right?

Yes that is possible, move the segments around. They are drawn from left to right, so the config snippet you posted should already have the fold column to the right of the number column?