From cb26be40f183cb9af5bf8f0b91f96314a36a9bf4 Mon Sep 17 00:00:00 2001 From: Victor Miraldo Date: Sat, 7 Dec 2024 17:37:51 +0100 Subject: [PATCH 1/2] Add eglot configuration --- .../configuration/language-server-settings.md | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/docs/configuration/language-server-settings.md b/docs/configuration/language-server-settings.md index 04ef8f971..4baafa8a3 100644 --- a/docs/configuration/language-server-settings.md +++ b/docs/configuration/language-server-settings.md @@ -140,4 +140,30 @@ basedpyright.analysis.diagnosticMode = "openFilesOnly" } } } -``` \ No newline at end of file +``` + +### eglot + +```lisp +(use-package eglot + :ensure t + :config + (add-to-list 'eglot-server-programs '( + (python-mode python-ts-mode) + "basedpyright-langserver" "--stdio" + )) + (setq-default + eglot-workspace-configuration + '(:basedpyright ( + :typeCheckingMode "recommended" + ) + :basedpyright.analysis ( + :diagnosticSeverityOverrides ( + :reportUnusedCallResult "none" + ) + :inlayHints ( + :callArgumentNames :json-false + ) + ))) +) +``` From e0147b92dcb9527e25a9514f90c96aae5fb59879 Mon Sep 17 00:00:00 2001 From: Victor Cacciari Miraldo Date: Tue, 10 Dec 2024 13:26:26 +0100 Subject: [PATCH 2/2] Update docs/configuration/language-server-settings.md Co-authored-by: DetachHead <57028336+DetachHead@users.noreply.github.com> --- docs/configuration/language-server-settings.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/configuration/language-server-settings.md b/docs/configuration/language-server-settings.md index 4baafa8a3..a977e5e37 100644 --- a/docs/configuration/language-server-settings.md +++ b/docs/configuration/language-server-settings.md @@ -142,7 +142,8 @@ basedpyright.analysis.diagnosticMode = "openFilesOnly" } ``` -### eglot +### emacs +#### eglot ```lisp (use-package eglot