Open forrestchang opened 5 years ago
Have you seen pycheck-flycheckers?
The following hack has worked for me:
(use-package lsp-python-ms
:init
(setq lsp-python-ms-auto-install-server t)
:hook
((python-mode . (lambda ()
(require 'lsp-python-ms)
(lsp-deferred)))
;; This hack is necessary to make additional flycheck checkers work in lsp-mode
(flycheck-mode . (lambda ()
(flycheck-add-next-checker 'lsp 'python-flake8)
(flycheck-add-next-checker 'python-flake8 'python-mypy)
(message "Added flycheck checkers.")))))
For example, I want use pylint after lsp-ui, and mypy after pylint, how should I setup?