Ensure lsp-ui doesn't overwrite file/dir-local flycheck-checker
This commit is contained in:
parent
640cee3b26
commit
01c3f34bb0
1 changed files with 6 additions and 1 deletions
|
@ -118,7 +118,12 @@ This also logs the resolved project root, if found, so we know where we are."
|
||||||
(lsp--flymake-setup))
|
(lsp--flymake-setup))
|
||||||
((require 'flycheck nil t)
|
((require 'flycheck nil t)
|
||||||
(require 'lsp-ui-flycheck)
|
(require 'lsp-ui-flycheck)
|
||||||
(lsp-ui-flycheck-enable t)))))
|
(let ((old-checker flycheck-checker))
|
||||||
|
(lsp-ui-flycheck-enable t)
|
||||||
|
(when old-checker
|
||||||
|
(setq-local flycheck-checker old-checker)
|
||||||
|
(kill-local-variable 'flycheck-check-syntax-automatically)))))))
|
||||||
|
|
||||||
:config
|
:config
|
||||||
(setq lsp-prefer-flymake nil
|
(setq lsp-prefer-flymake nil
|
||||||
lsp-ui-doc-max-height 8
|
lsp-ui-doc-max-height 8
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue