emacs-lsp / lsp-metals

lsp-mode :heart: metals
https://emacs-lsp.github.io/lsp-metals
GNU General Public License v3.0
58 stars 33 forks source link

Add a Command to Run 'scalafix-run' #80

Closed LaurenceWarne closed 2 years ago

LaurenceWarne commented 2 years ago

Hi, this PR adds a new command lsp-metals-run-scalafix which runs the scalafix-run command (documentation: https://scalameta.org/metals/docs/integrations/new-editor/#run-all-scalafix-rules).

~I've also added a utility function for adding this command to before-save-hook, and added this to the example setup~. I hope this is helpful, thanks :slightly_smiling_face:

kurnevsky commented 2 years ago

Thanks.