Flycheck to skip lsp and jump directly to flake8.

This commit is contained in:
Julien Palard 2021-10-02 16:38:57 +02:00
parent 97319d3a64
commit 2efab156ce
Signed by: mdk
GPG Key ID: 0EFC1AC1006886F8
1 changed files with 3 additions and 5 deletions

View File

@ -30,11 +30,10 @@
(use-package lsp-mode
:ensure t
:custom
(lsp-diagnostics-provider :flycheck)
(lsp-jedi-hover-disable-keyword-all t)
(lsp-ui-sideline-show-code-actions nil)
(lsp-ui-sideline-show-diagnostics nil)
(lsp-ui-sideline-show-hover nil)
(lsp-diagnostics-provider :none)
(lsp-jedi-pylsp-extra-paths [])
:config
(set-face-attribute 'lsp-face-highlight-textual nil
@ -66,10 +65,9 @@
;; Test using flycheck-verify-setup
(use-package flycheck
:ensure t
:after lsp-mode
:config
(global-flycheck-mode t)
(setq-default flycheck-disabled-checkers '(lsp))
(add-hook 'python-mode-hook (setq flycheck-checker 'python-flake8)))
(global-flycheck-mode t))
(use-package blacken
:ensure t