From 8aef5c1a44a7c12c05fb2470cf2d6d33ce30d3f2 Mon Sep 17 00:00:00 2001 From: David Morgan Date: Mon, 13 Sep 2021 15:55:08 +0100 Subject: Make sure lsp lens mode is diminished --- .emacs.d/lisp/init-lsp.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to '.emacs.d') diff --git a/.emacs.d/lisp/init-lsp.el b/.emacs.d/lisp/init-lsp.el index 14579e1..3c44367 100644 --- a/.emacs.d/lisp/init-lsp.el +++ b/.emacs.d/lisp/init-lsp.el @@ -10,13 +10,17 @@ (use-package lsp-mode :diminish - :hook (clojure-mode . lsp) + :hook + (clojure-mode . lsp) + (lsp-lens-mode . really-diminish-lsp-lens-mode) :config + (defun really-diminish-lsp-lens-mode () + (diminish 'lsp-lens-mode) + (remove-hook 'lsp-lens-mode-hook 'really-diminish-lsp-lens-mode)) (if (eq system-type 'darwin) (setq lsp-keymap-prefix "s-l") (setq lsp-keymap-prefix "C-c C-l")) (define-key lsp-mode-map (kbd lsp-keymap-prefix) lsp-command-map) - (diminish 'lsp-lens-mode) (setq read-process-output-max (* 1024 1024) lsp-ui-sideline-enable t lsp-ui-peek-enable t -- cgit 1.4.1-2-gfad0