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

Is it possible to stop folds from opening when code is formatted? #107

Open
joshstobbs opened this issue Feb 1, 2023 · 5 comments
Open
Labels
enhancement New feature or request

Comments

@joshstobbs
Copy link

Feature description

This is less of a request and more of a question, just unsure which place to put this, when my code is formatted (say through null-ls) all of my folds are automatically opened.

Describe the solution you'd like

The question I suppose, is that something that has to happen or could it be avoided?

Thanks so much for this plugin, it truly is incredible!

Additional context

No response

@joshstobbs joshstobbs added the enhancement New feature or request label Feb 1, 2023
@kevinhwang91
Copy link
Owner

Depend on whether your formatting provider support range formatting.

@MariaSolOs
Copy link

@kevinhwang91 sorry to revive this issue, but could you please elaborate? Say that the client does support range formatting. In that case should it just work, or is there extra configuration needed?

@kevinhwang91
Copy link
Owner

@kevinhwang91 sorry to revive this issue, but could you please elaborate? Say that the client does support range formatting. In that case should it just work, or is there extra configuration needed?

If your LSP client support range formatting, no need to configure anything.

@niksingh710
Copy link

does stylua support range formatting?

@kevinhwang91
Copy link
Owner

does stylua support range formatting?

You can use a ls server like https://github.com/mattn/efm-langserver to provide range formatting.

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

No branches or pull requests

4 participants