From 1ad9b249f40b85db568e81669d330734a87ea81c Mon Sep 17 00:00:00 2001 From: sterni Date: Thu, 26 May 2022 14:09:57 +0200 Subject: feat(sterni/emacs): configure lsp-ui-sideline for code actions Change-Id: Idd0d09c47466f77cc04a628c95152d306af563d5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5680 Autosubmit: sterni Tested-by: BuildkiteCI Reviewed-by: sterni --- users/sterni/emacs/init.el | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'users') diff --git a/users/sterni/emacs/init.el b/users/sterni/emacs/init.el index 17b3f3573689..fd4077172d73 100644 --- a/users/sterni/emacs/init.el +++ b/users/sterni/emacs/init.el @@ -253,6 +253,8 @@ (use-package lsp-mode :hook ((haskell-mode . lsp-deferred)) :commands (lsp lsp-deferred) + :custom + lsp-modeline-code-actions-segments '() ; using lsp-ui-sideline instead :config (evil-define-key 'normal 'global (kbd "lwr") 'lsp-workspace-restart @@ -268,6 +270,9 @@ lsp-ui-doc-delay 0.5 :config (set-face-background 'lsp-ui-doc-background "WhiteSmoke") + (set-face-foreground 'lsp-ui-sideline-code-action "SaddleBrown") + (setq lsp-ui-sideline-code-actions-prefix "🔨 " + lsp-ui-sideline-show-code-actions t) ; is :custom, but won't take effect? (evil-define-key 'normal lsp-ui-mode-map ;; TODO(sterni): emulate using xref for non-lsp? (kbd "lgr") 'lsp-ui-peek-find-references -- cgit 1.4.1