You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vim.o.foldcolumn="1" -- '0' is not badvim.o.foldlevel=99-- Using ufo provider need a large value, feel free to decrease the valuevim.o.foldlevelstart=99vim.o.foldenable=truevim.o.fillchars=[[eob: ,fold: ,foldopen:,foldsep: ,foldclose:]]-- these are "extra", change them as you likevim.keymap.set("n", "zR", require("ufo").openAllFolds)
vim.keymap.set("n", "zM", require("ufo").closeAllFolds)
-- Option 3: treesitter as a main provider instead-- Only depend on `nvim-treesitter/queries/filetype/folds.scm`,-- performance and stability are better than `foldmethod=nvim_treesitter#foldexpr()`require("ufo").setup(
{
provider_selector=function(bufnr, filetype, buftype)
return {"treesitter", "indent"}
end
}
)
Expected behavior
I expect the function names or at least the first line of the fold to remain visible after folding the code, which would allow for easy identification of folded sections.
Actual behavior
The function names disappear.
before:
After:
The text was updated successfully, but these errors were encountered:
Neovim version (nvim -v | head -n1)
NVIM v0.10.0-dev
Operating system/version
macOS
config
Expected behavior
I expect the function names or at least the first line of the fold to remain visible after folding the code, which would allow for easy identification of folded sections.
Actual behavior
The function names disappear.
before:
After:
![Screenshot 2024-03-09 at 18 09 46](https://private-user-images.githubusercontent.com/20575896/311446046-2389e347-47fd-4b2f-8988-f8ef0ad5ede4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyODczMzMsIm5iZiI6MTcyNDI4NzAzMywicGF0aCI6Ii8yMDU3NTg5Ni8zMTE0NDYwNDYtMjM4OWUzNDctNDdmZC00YjJmLTg5ODgtZjhlZjBhZDVlZGU0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIyVDAwMzcxM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM0ZmI2ZDIwN2UwNmE1NmUxMDc3ODEwZDA2MjJjOWIzYzcxNTQ2YTAxMDQyMDFjMWM3OTc4YWMyODRhNDZiOGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.4OCPUR-JH9rh0icFPV5ySBVYeBdtHghYCFvI6drAeSw)
The text was updated successfully, but these errors were encountered: