We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Describe the bug When vintage is enabled and :w is used to save the file, lsp doesn't format the file. I have to manually do CTRL + s.
:w
CTRL + s
To Reproduce Steps to reproduce the behavior:
lsp_format_on_save
Expected behavior lsp should format the file
Screenshots If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered:
If you log what command is ran with sublime.log_commands(True), you can see that :w runs the save command.
sublime.log_commands(True)
save
For LSP we must instead run an lsp_save command in order to asynchronously run code-actions-on-save, and asynchronously format-on-save.
lsp_save
There is no way to run code asynchronously via the on_pre_save callback in the ST API, hence lsp_save exists.
on_pre_save
Sorry, something went wrong.
Note that NeoVintageous allows you to map :w to lsp_save.
Ok thanks, will try it.
No branches or pull requests
Describe the bug
When vintage is enabled and
:w
is used to save the file, lsp doesn't format the file. I have to manually doCTRL + s
.To Reproduce
Steps to reproduce the behavior:
lsp_format_on_save
Expected behavior
lsp should format the file
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: