refactor!(python): remove lsp-python-ms
BREAKING CHANGE: This removes the lsp-python-ms package (along with it, lsp-python-ms support), since the package no longer works in recent versions of Python and is no longer maintained upstream.
This commit is contained in:
parent
b7954f927f
commit
934141a01e
3 changed files with 11 additions and 22 deletions
|
@ -10,7 +10,7 @@ This module adds [[https://www.python.org/][Python]] support to Doom Emacs.
|
|||
- Snippets
|
||||
- Run tests ([[doom-package:nose]], [[doom-package:pytest]])
|
||||
- Auto-format (with ~black~, requires [[doom-module::editor format]])
|
||||
- LSP integration (=mspyls=, =pyls=, or =pyright=)
|
||||
- LSP integration (=pyls=, =jedi=, =ruff=, or =pyright=)
|
||||
|
||||
** Maintainers
|
||||
- [[doom-user:][@hlissner]]
|
||||
|
@ -23,15 +23,15 @@ This module adds [[https://www.python.org/][Python]] support to Doom Emacs.
|
|||
- +cython ::
|
||||
Enable support for Cython files support.
|
||||
- +lsp ::
|
||||
Enable LSP support for ~python-mode~. Requires [[doom-module::tools lsp]] and a langserver
|
||||
(supports mspyls, pyls, and pyright).
|
||||
Enable LSP support for ~python-mode~. Requires [[doom-module::tools lsp]] and a
|
||||
langserver (=pyls=, =jedi=, =ruff=, or =pyright=).
|
||||
- +poetry ::
|
||||
Enable Python packaging, dependency management, and virtual environment
|
||||
support via [[https://python-poetry.org/][Poetry]].
|
||||
- +pyenv ::
|
||||
Enable Python virtual environment support via [[https://github.com/pyenv/pyenv][pyenv]]
|
||||
- +pyright ::
|
||||
Use the pyright LSP server instead of mspyls or pyls (requires [[doom-module:+lsp]]).
|
||||
Add support for the pyright LSP server (requires [[doom-module:+lsp]]).
|
||||
- +tree-sitter ::
|
||||
Leverages tree-sitter for better syntax highlighting and structural text
|
||||
editing. Requires [[doom-module::tools tree-sitter]].
|
||||
|
@ -53,8 +53,6 @@ This module adds [[https://www.python.org/][Python]] support to Doom Emacs.
|
|||
- if [[doom-module:+lsp]]
|
||||
- if [[doom-module:+pyright]]
|
||||
- [[doom-package:lsp-pyright]]
|
||||
- else
|
||||
- [[doom-package:lsp-python-ms]]
|
||||
|
||||
** Hacks
|
||||
- [[doom-package:anaconda-mode]] is configured to activate when [[doom-package:lsp-mode]] (or [[doom-package:eglot]]) don't -- or
|
||||
|
|
|
@ -342,16 +342,8 @@
|
|||
;;
|
||||
;;; LSP
|
||||
|
||||
(eval-when! (and (modulep! +lsp)
|
||||
(not (modulep! :tools lsp +eglot)))
|
||||
|
||||
(use-package! lsp-python-ms
|
||||
:unless (modulep! +pyright)
|
||||
:after lsp-mode
|
||||
:preface
|
||||
(after! python
|
||||
(setq lsp-python-ms-python-executable-cmd python-shell-interpreter)))
|
||||
|
||||
(use-package! lsp-pyright
|
||||
:when (modulep! +pyright)
|
||||
:after lsp-mode))
|
||||
(use-package! lsp-pyright
|
||||
:when (modulep! +lsp)
|
||||
:when (modulep! +pyright)
|
||||
:when (not (modulep! :tools lsp +eglot))
|
||||
:after lsp-mode)
|
||||
|
|
|
@ -11,9 +11,8 @@
|
|||
;; LSP
|
||||
(when (modulep! +lsp)
|
||||
(unless (modulep! :tools lsp +eglot)
|
||||
(if (modulep! +pyright)
|
||||
(package! lsp-pyright :pin "cc6df06aeaee3053eb800a24193483387b7b545b")
|
||||
(package! lsp-python-ms :pin "7bda327bec7b219d140c34dab4b1e1fbd41bc516"))))
|
||||
(when (modulep! +pyright)
|
||||
(package! lsp-pyright :pin "cc6df06aeaee3053eb800a24193483387b7b545b"))))
|
||||
|
||||
;; Programming environment
|
||||
(package! anaconda-mode :pin "79fa9b4d2bda9f69857aeffb30c75276848a2810")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue