emacs-lsp / lsp-metals

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

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

Closed LaurenceWarne closed 1 year ago

LaurenceWarne commented 1 year 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 1 year ago

Thanks.