diff options
| author | Alex <alex.corcoles@veecle.io> | 2025-04-29 16:31:41 +0200 |
|---|---|---|
| committer | alexpdp7 <alex@corcoles.net> | 2025-04-29 16:34:49 +0200 |
| commit | 5b3fd6b8aeb11d15ed319aed14439724469f88b0 (patch) | |
| tree | 325c5947c01fa23880a786cd28d17f300b003c7a | |
| parent | aee16dcccf673c5df244735f62920cd9fe5192e0 (diff) | |
Switch from elpy to eglot + basedpyright
| -rw-r--r-- | emacs/emacs.el | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/emacs/emacs.el b/emacs/emacs.el index 59d18153..a09582be 100644 --- a/emacs/emacs.el +++ b/emacs/emacs.el @@ -78,11 +78,12 @@ ;; Untar the archive and symlink the jdtls binary in ~/.local/bin (add-hook 'java-mode-hook 'eglot-ensure) -;; Did not manage to make eglot work :( -(use-package elpy - :ensure t - :init - (elpy-enable)) +;; pipx install basedpyright +(add-hook 'python-mode-hook 'eglot-ensure) + +;; The default setting is higher than strict, and complains (amongst others) about missing type annotations +(setq-default eglot-workspace-configuration + '(:basedpyright (:typeCheckingMode "strict"))) ;; YAML support (use-package yaml-mode :ensure t) |
