From 6ad23fa5fb92afca0757c699d776778b917b1bb6 Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Sat, 13 Jul 2024 10:07:44 +0200 Subject: [PATCH] pinwheel: Show inferred types with `metals` in `emacs` --- hosts/pinwheel/modules/emacs/config.org | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hosts/pinwheel/modules/emacs/config.org b/hosts/pinwheel/modules/emacs/config.org index 5c736b6..cd2b877 100644 --- a/hosts/pinwheel/modules/emacs/config.org +++ b/hosts/pinwheel/modules/emacs/config.org @@ -503,6 +503,14 @@ Setup prefix for keybindings. '(scala-mode . ("metals" :initializationOptions (:isHttpEnabled t)))) + (setq-default eglot-workspace-configuration + '( + :metals ( + :inlayHints (:inferredTypes (:enable t)) + ) + ) + ) + :hook ( (go-mode . eglot-ensure) (go-mode . alex/organize-imports-on-save)