Disable +flycheck-popup-mode in lsp-ui-mode #1192

As its redundant with lsp-ui's sideline feature.
This commit is contained in:
Henrik Lissner
2019-02-24 13:52:36 -05:00
parent 5e24c93d4c
commit 899c4b8117
2 changed files with 13 additions and 2 deletions

View File

@ -42,3 +42,11 @@
flycheck-popup-tip-old-display-function nil)
(dolist (hook hooks)
(remove-hook hook '+flycheck-cleanup-popup t))))))
;;;###autoload
(defun +flycheck|disable-popup-mode-for-lsp ()
"Disable `+flycheck-popup-mode' if `lsp-ui-mode' and `lsp-ui-sideline-enable'
are non-nil."
(when (and (bound-and-true-p lsp-ui-mode)
lsp-ui-sideline-enable)
(+flycheck-popup-mode -1)))