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.
This commit is contained in:
2021-10-11 10:33:54 +01:00
parent 35d6e12612
commit c52853e832
2 changed files with 6 additions and 5 deletions

View File

@@ -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

View File

@@ -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