tweak(default): consult-flymake in a branch of +default-diagnostics

when available instead of plain flymake-show-diagnostics-buffer
This commit is contained in:
Daanturo 2022-07-12 18:04:43 +07:00 committed by Henrik Lissner
parent 5bbc299b8b
commit b5fd085af0

View file

@ -62,7 +62,9 @@ current project. Otherwise list them for the current buffer"
(bound-and-true-p flycheck-mode))
(flycheck-list-errors))
((bound-and-true-p flymake-mode)
(flymake-show-diagnostics-buffer))
(if (featurep! :completion vertico)
(consult-flymake)
(flymake-show-diagnostics-buffer)))
(t
(user-error "No diagnostics backend detected. Enable flycheck or \
flymake, or set up lsp-mode if applicable (see :lang lsp)"))))