Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if there a simple config to remove these fold numbers #27

Closed
scottming opened this issue Mar 1, 2023 · 5 comments
Closed

if there a simple config to remove these fold numbers #27

scottming opened this issue Mar 1, 2023 · 5 comments

Comments

@scottming
Copy link

scottming commented Mar 1, 2023

I know this is maybe a duplicate question kevinhwang91/nvim-ufo#4 , but after upgrading to the latest version, this config doesn't work now:

image

vim config:

vim.o.foldcolumn = "1" -- '0' is not bad
vim.o.foldlevel = 99 -- Using ufo provider need a large value, feel free to decrease the value
vim.o.foldlevelstart = 99
vim.o.foldenable = true
vim.o.fillchars = [[eob: ,fold: ,foldopen:,foldsep: ,foldclose:]]
@scottming scottming changed the title if there a easy config to remove these fold numbers if there a simple config to remove these fold numbers Mar 1, 2023
@luukvbaal
Copy link
Owner

Yes, supply builtin.foldfunc to the segments table:

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" },
}

@luukvbaal
Copy link
Owner

I guess information about the builtin functions is missing from the readme.

@luukvbaal luukvbaal reopened this Mar 1, 2023
luukvbaal added a commit that referenced this issue Mar 2, 2023
@scottming
Copy link
Author

It seems like the expand icon clicks do not work.

I mean, whatever + or -, click them both will fold, not expand.

@luukvbaal
Copy link
Owner

Fixed...

@scottming
Copy link
Author

Thanks for the quick fix; no more issues now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants