feat(default): use consult-flycheck when applicable

This commit is contained in:
Itai Y. Efrat 2022-08-12 12:34:21 +03:00 committed by Henrik Lissner
parent 12bf6baa21
commit 0e6682612f

View file

@ -60,7 +60,9 @@ current project. Otherwise list them for the current buffer"
(consult-lsp-diagnostics arg))
((and (featurep! :checkers syntax)
(bound-and-true-p flycheck-mode))
(flycheck-list-errors))
(if (featurep! :completion vertico)
(consult-flycheck)
(flycheck-list-errors)))
((bound-and-true-p flymake-mode)
(if (featurep! :completion vertico)
(consult-flymake)