Skip to content

Commit

Permalink
feat(python): add eglot support for +pyright (doomemacs#5355)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernest DONG authored and muzili committed Sep 29, 2021
1 parent 3dda505 commit b42e017
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/lang/python/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -327,3 +327,8 @@
(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")))))

0 comments on commit b42e017

Please sign in to comment.