feat(default): add +default/diagnostics

Unify flycheck-list-errors and flymake-show-diagnostics-buffer under
+default/diagnostics, and use consult-lsp-diagnostics if the lsp and
vertico modules are active.
This commit is contained in:
Itai Y. Efrat
2021-08-13 00:09:44 +03:00
parent a10ac0e609
commit 2fdcefa831
4 changed files with 22 additions and 7 deletions

View File

@ -412,9 +412,7 @@
:desc "Find type definition" "t" #'+lookup/type-definition
:desc "Delete trailing whitespace" "w" #'delete-trailing-whitespace
:desc "Delete trailing newlines" "W" #'doom/delete-trailing-newlines
:desc "List errors" "x" #'flymake-show-diagnostics-buffer
(:when (featurep! :checkers syntax)
:desc "List errors" "x" #'flycheck-list-errors))
:desc "List errors" "x" #'+default/diagnostics)
;;; <leader> f --- file
(:prefix-map ("f" . "file")