diff options
author | sterni <sternenseemann@systemli.org> | 2022-05-26T12·09+0200 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-05-26T12·13+0000 |
commit | 1ad9b249f40b85db568e81669d330734a87ea81c (patch) | |
tree | c726b5338e77bd7aaee8b4848d7042d90c10a2f1 /users/sterni/emacs | |
parent | 80a80a0706d80161cd6d99226a0f34718e99ab33 (diff) |
feat(sterni/emacs): configure lsp-ui-sideline for code actions r/4132
Change-Id: Idd0d09c47466f77cc04a628c95152d306af563d5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5680 Autosubmit: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'users/sterni/emacs')
-rw-r--r-- | users/sterni/emacs/init.el | 5 |
1 files changed, 5 insertions, 0 deletions
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 "<leader>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 "<leader>lgr") 'lsp-ui-peek-find-references |