refactor(python): remove redundant pyright+eglot config

joaotavora/eglot@fd27cdc8f9 adds Pyright support to Eglot, so these
lines can be removed.

Amend: 34cb632a61
Revert: #5355
Ref: joaotavora/eglot@fd27cdc8f9
Ref: joaotavora/eglot#742
This commit is contained in:
Ernest DONG 2022-01-27 22:44:45 +08:00 committed by GitHub
parent 1c1ad3a8c8
commit 8b41f44882
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -332,8 +332,3 @@
(use-package! lsp-pyright
:when (featurep! +pyright)
:after lsp-mode))
(eval-when! (and (featurep! +pyright)
(featurep! :tools lsp +eglot))
(after! eglot
(add-to-list 'eglot-server-programs '(python-mode . ("pyright-langserver" "--stdio")))))