-
-
Notifications
You must be signed in to change notification settings - Fork 26
Feature requests: format without saving and default to LSP #8
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
Comments
Sorry I don't understand this. if you set |
Added the default lsp support in #16 |
@glepnir I do want to format on save, but I don't want to save on format. |
You can make a pr that removes this line. |
@xsh005 I could, but I don't want to break someone else's workflow. I suppose I could try adding a Edit: I don't know how to go about doing this myself, unfortunately. |
because it's async so there added |
@glepnir Yeah, that would be great! |
Uh oh!
There was an error while loading. Please reload this page.
Hi! I couldn't find a way to run
:GuardFmt
orrequire("guard.format").do_fmt()
without also saving the changes to the file, so I figured I'd request it as a feature.Secondly, is there, or could there be, a way to fall back to LSP formatting if guard is not configured for the current filetype? Maybe something like
ft("default"):fmt("lsp")
or an additional option in the setup call? Another possibility would be fordo_fmt()
to return some sort of success or failure so I could use that to determine whether I should run my own formatting logic with installed language servers.Just some thoughts! Thanks.
The text was updated successfully, but these errors were encountered: