From 3812b3df296e97f3cdd1303e73352c6802172534 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sun, 15 Nov 2020 17:11:51 +0000 Subject: [PATCH] feat(lsp): bind lsp-ui-doc-glance to C-c C-d instead of lsp-ui-doc-show Also tweak lsp-ui-doc-* to show documentation at point --- modules/lsp/siren-lsp-ui.el | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/lsp/siren-lsp-ui.el b/modules/lsp/siren-lsp-ui.el index 5a1d44c..0a77399 100644 --- a/modules/lsp/siren-lsp-ui.el +++ b/modules/lsp/siren-lsp-ui.el @@ -11,13 +11,18 @@ (use-package lsp-ui :defer t :bind (:map lsp-ui-mode-map - ("C-c C-d" . lsp-ui-doc-show) + ("C-c C-d" . lsp-ui-doc-glance) ("M-?" . lsp-ui-peek-find-references) ("C-c C-j" . lsp-ui-peek-find-definitions)) :custom (lsp-ui-doc-enable nil) - (lsp-ui-sideline-enable nil)) + (lsp-ui-sideline-enable nil) + (lsp-ui-doc-alignment 'window) + (lsp-ui-doc-delay 0) + (lsp-ui-doc-header nil) + (lsp-ui-doc-position 'at-point) + (lsp-ui-doc-use-webkit nil)) (provide 'siren-lsp-ui) ;;; siren-lsp-ui.el ends here