tweak(default): consult-flymake in a branch of +default-diagnostics
when available instead of plain flymake-show-diagnostics-buffer
This commit is contained in:
parent
5bbc299b8b
commit
b5fd085af0
1 changed files with 3 additions and 1 deletions
|
@ -62,7 +62,9 @@ current project. Otherwise list them for the current buffer"
|
||||||
(bound-and-true-p flycheck-mode))
|
(bound-and-true-p flycheck-mode))
|
||||||
(flycheck-list-errors))
|
(flycheck-list-errors))
|
||||||
((bound-and-true-p flymake-mode)
|
((bound-and-true-p flymake-mode)
|
||||||
(flymake-show-diagnostics-buffer))
|
(if (featurep! :completion vertico)
|
||||||
|
(consult-flymake)
|
||||||
|
(flymake-show-diagnostics-buffer)))
|
||||||
(t
|
(t
|
||||||
(user-error "No diagnostics backend detected. Enable flycheck or \
|
(user-error "No diagnostics backend detected. Enable flycheck or \
|
||||||
flymake, or set up lsp-mode if applicable (see :lang lsp)"))))
|
flymake, or set up lsp-mode if applicable (see :lang lsp)"))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue