From c0490697c011e43928977ad79a3ccba92628594c Mon Sep 17 00:00:00 2001 From: Ernest DONG Date: Tue, 14 Sep 2021 20:26:24 +0800 Subject: [PATCH] feat(python): add eglot support for +pyright (#5355) --- modules/lang/python/config.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/lang/python/config.el b/modules/lang/python/config.el index d9283baab..0e4c04acc 100644 --- a/modules/lang/python/config.el +++ b/modules/lang/python/config.el @@ -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")))))