feat(lsp): use flymake when enabled

This commit is contained in:
Jeetaditya Chatterjee
2022-08-16 20:12:45 +01:00
parent 1cae082d66
commit b957142e3e
3 changed files with 16 additions and 2 deletions

View File

@@ -19,7 +19,8 @@
;; NOTE We disable eglot-auto-display-help-buffer because :select t in
;; its popup rule causes eglot to steal focus too often.
eglot-auto-display-help-buffer nil)
(when (modulep! :checkers syntax)
(when (and (modulep! :checkers syntax)
(not (modulep! :checkers syntax +flymake)))
(setq eglot-stay-out-of '(flymake)))
:config
@@ -33,6 +34,11 @@
(add-to-list 'doom-debug-variables '(eglot-events-buffer-size . 0))
(when (and (modulep! :checkers syntax)
(not (modulep! :checkers syntax +flymake)))
(after! flycheck
(load! "autoload/flycheck-eglot")))
(defadvice! +lsp--defer-server-shutdown-a (fn &optional server)
"Defer server shutdown for a few seconds.
This gives the user a chance to open other project files before the server is