diff --git a/docs/configuration/language-server-settings.md b/docs/configuration/language-server-settings.md index 04ef8f971..a977e5e37 100644 --- a/docs/configuration/language-server-settings.md +++ b/docs/configuration/language-server-settings.md @@ -140,4 +140,31 @@ basedpyright.analysis.diagnosticMode = "openFilesOnly" } } } -``` \ No newline at end of file +``` + +### emacs +#### 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 + ) + ))) +) +```