Created
January 14, 2020 18:44
-
-
Save matfournier/997107bfa8ee37d093e7c2ff1a9f0279 to your computer and use it in GitHub Desktop.
emacs scala lsp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(map! :map scala-mode-map | |
"C-c C-t" #'lsp-ui-doc-show ;; shows type under cursor as a hover | |
"C-c t" #'lsp-describe-thing-at-point ;; shows type under cursor in temp buffer below | |
"C-c H" #'lsp-ui-doc-mode ;; toggle auto-showing type under cursor asa hover | |
"C-c F" #'lsp-format-buffer ;; run scalafmt on the entire buffer | |
"C-c f" #'lsp-format-region ;; run scalafmt on the selected region | |
"C-c C-f" #'lsp-find-references ;; find references symbol under cursor | |
"C-c i" #'lsp-execute-code-action ;; import missing type/class | |
"C-c r" #'lsp-rename ;; rename symbol | |
"C-c e" #'lsp-ui-flycheck-list ;; list all errors | |
"C-c g" #'lsp-goto-implementation ;; list all implementations for trait | |
) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Oh I didn't know you can put in descriptions! thanks for this.