Fix user-defined flycheck-checker in lsp-mode

This commit is contained in:
Henrik Lissner
2020-10-20 16:51:39 -04:00
parent 9929883bf9
commit 88b42caab0
2 changed files with 2 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ Can be a list of backends; accepts any value `company-backends' accepts.")
(defadvice! +lsp--respect-user-defined-checkers-a (orig-fn &rest args)
"Ensure user-defined `flycheck-checker' isn't overwritten by `lsp'."
:around #'lsp-diagnostics--flycheck-enable
:around #'lsp-diagnostics-flycheck-enable
(if flycheck-checker
(let ((old-checker flycheck-checker))
(apply orig-fn args)