feat(python): add eglot support for +pyright (#5355)

This commit is contained in:
Ernest DONG 2021-09-14 20:26:24 +08:00 committed by GitHub
parent 8e30579823
commit c0490697c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -327,3 +327,8 @@
(use-package! lsp-pyright (use-package! lsp-pyright
:when (featurep! +pyright) :when (featurep! +pyright)
:after lsp-mode)) :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")))))