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

[Ques] Folds are open after formatting #205

Closed
niksingh710 opened this issue Mar 14, 2024 · 2 comments
Closed

[Ques] Folds are open after formatting #205

niksingh710 opened this issue Mar 14, 2024 · 2 comments
Labels
duplicate This issue or pull request already exists question Further information is requested

Comments

@niksingh710
Copy link

niksingh710 commented Mar 14, 2024

Neovim version (nvim -v | head -n1)

NVIM v0.9.5

Operating system/version

Arch linux

i use manual formatting (LSP)
if i format my file having few functions folded it opens all the folds.

Expected behavior

After format the part that is folded should be folded and the part that is not folded should be kept like that.

Actual behavior

opens all folds when formatted.

These are my selection provider.

{ "lsp", "indent" }
@niksingh710 niksingh710 added the bug Something isn't working label Mar 14, 2024
@kevinhwang91
Copy link
Owner

#107

@kevinhwang91 kevinhwang91 added duplicate This issue or pull request already exists question Further information is requested and removed bug Something isn't working labels Mar 14, 2024
@Jeppelelle
Copy link

Jeppelelle commented Mar 15, 2024

#107

Is this really a duplicate? I use https://github.com/ray-x/go.nvim & everything has worked as expected until yesterday, close_fold_kinds changed to close_fold_kinds_for_ft, so i updated my config from close_fold_kinds = {} to close_fold_kinds_for_ft = {}, no luck though, all folds open during gofmt even though folds stayed closed in prior ufo versions

#107

issue was about support for range formatting, but this new issue exist even when the lsp supports range formatting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants