From c52853e832745c9335b46d4503df80e068be6c54 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 11 Oct 2021 10:33:54 +0100 Subject: [PATCH] feat(lsp): tweak lsp diagnostics related keybindings - Bind consult-lsp-diagnostics to C-c C-\ as it is visually less intrusive, and scoped to only the current workspace. - Bind helm-lsp-diagnostics to C-c \ which includes diagnostics from all active workspaces. --- modules/lsp/siren-consult-lsp.el | 3 ++- modules/lsp/siren-helm-lsp.el | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/modules/lsp/siren-consult-lsp.el b/modules/lsp/siren-consult-lsp.el index 1b8d103..e50e6fb 100644 --- a/modules/lsp/siren-consult-lsp.el +++ b/modules/lsp/siren-consult-lsp.el @@ -12,7 +12,8 @@ (use-package consult-lsp :bind (:map lsp-mode-map - ("C-t" . consult-lsp-file-symbols))) + ("C-t" . consult-lsp-file-symbols) + ("C-c C-\\" . consult-lsp-diagnostics))) (provide 'siren-consult-lsp) ;;; siren-consult-lsp.el ends here diff --git a/modules/lsp/siren-helm-lsp.el b/modules/lsp/siren-helm-lsp.el index 82467d1..e962e1b 100644 --- a/modules/lsp/siren-helm-lsp.el +++ b/modules/lsp/siren-helm-lsp.el @@ -12,10 +12,10 @@ (use-package helm-lsp :after (helm-global-bindings) :bind - ("C-c '" . helm-lsp-workspace-symbol) - ("C-c C-'" . helm-lsp-workspace-symbol) - ("C-c \\" . helm-lsp-diagnostics) - ("C-c C-\\" . helm-lsp-diagnostics)) + (:map lsp-mode-map + ("C-c '" . helm-lsp-workspace-symbol) + ("C-c C-'" . helm-lsp-workspace-symbol) + ("C-c \\" . helm-lsp-diagnostics))) (provide 'siren-helm-lsp) ;;; siren-helm-lsp.el ends here