From 553694530e3fe22e6f92e475cbfca2e334358390 Mon Sep 17 00:00:00 2001 From: kj Date: Mon, 6 Jun 2022 17:11:28 -0400 Subject: [PATCH] Disable lsp-ui-doc on mouse hover and set F1 key to trigger it. --- configs/base-lsp.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configs/base-lsp.el b/configs/base-lsp.el index bcaf7c5..8785ab0 100644 --- a/configs/base-lsp.el +++ b/configs/base-lsp.el @@ -80,12 +80,16 @@ (use-package lsp-ui :defer t :straight t - :bind (("" . lsp-ui-doc-glance)) + :bind (:map lsp-mode-map + ("" . lsp-ui-doc-glance)) :hook (lsp-mode . lsp-ui-mode) :init (setq lsp-ui-sideline-show-diagnostics nil lsp-ui-sideline-ignore-duplicate t + lsp-ui-doc-show-with-cursor nil + lsp-ui-doc-show-with-mouse nil + lsp-ui-doc-position 'at-point lsp-ui-doc-delay 0.1 lsp-ui-imenu-colors `(,(face-foreground 'font-lock-keyword-face) ,(face-foreground 'font-lock-string-face)