Fix #3274: don't chain checkers to LSP

Reverts 8ecec82
This commit is contained in:
Henrik Lissner 2020-08-11 21:08:57 -04:00
parent 132b8390d0
commit 50f1391e86
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -93,6 +93,16 @@ should be a deliberate act (as is flipping this variable).")
(catch 'not-installed
(apply orig-fn args)))))
(defadvice! +lsp--respect-user-defined-checkers-a (orig-fn &rest args)
"Set up flycheck-mode or flymake-mode, depending on `lsp-diagnostic-package'."
:around #'lsp-diagnostics--flycheck-enable
(if flycheck-checker
;; Respect file/dir/explicit user-defined `flycheck-checker'.
(let ((old-checker flycheck-checker))
(apply orig-fn args)
(setq-local flycheck-checker old-checker))
(apply orig-fn args)))
(add-hook! 'lsp-mode-hook
(defun +lsp-init-optimizations-h ()
"Increase `read-process-output-max' and `gcmh-high-cons-threshold'."