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
|
- Snippets
|
||||||
- Run tests ([[doom-package:nose]], [[doom-package:pytest]])
|
- Run tests ([[doom-package:nose]], [[doom-package:pytest]])
|
||||||
- Auto-format (with ~black~, requires [[doom-module::editor format]])
|
- Auto-format (with ~black~, requires [[doom-module::editor format]])
|
||||||
- LSP integration (=mspyls=, =pyls=, or =pyright=)
|
- LSP integration (=pyls=, =jedi=, =ruff=, or =pyright=)
|
||||||
|
|
||||||
** Maintainers
|
** Maintainers
|
||||||
- [[doom-user:][@hlissner]]
|
- [[doom-user:][@hlissner]]
|
||||||
|
@ -23,15 +23,15 @@ This module adds [[https://www.python.org/][Python]] support to Doom Emacs.
|
||||||
- +cython ::
|
- +cython ::
|
||||||
Enable support for Cython files support.
|
Enable support for Cython files support.
|
||||||
- +lsp ::
|
- +lsp ::
|
||||||
Enable LSP support for ~python-mode~. Requires [[doom-module::tools lsp]] and a langserver
|
Enable LSP support for ~python-mode~. Requires [[doom-module::tools lsp]] and a
|
||||||
(supports mspyls, pyls, and pyright).
|
langserver (=pyls=, =jedi=, =ruff=, or =pyright=).
|
||||||
- +poetry ::
|
- +poetry ::
|
||||||
Enable Python packaging, dependency management, and virtual environment
|
Enable Python packaging, dependency management, and virtual environment
|
||||||
support via [[https://python-poetry.org/][Poetry]].
|
support via [[https://python-poetry.org/][Poetry]].
|
||||||
- +pyenv ::
|
- +pyenv ::
|
||||||
Enable Python virtual environment support via [[https://github.com/pyenv/pyenv][pyenv]]
|
Enable Python virtual environment support via [[https://github.com/pyenv/pyenv][pyenv]]
|
||||||
- +pyright ::
|
- +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 ::
|
- +tree-sitter ::
|
||||||
Leverages tree-sitter for better syntax highlighting and structural text
|
Leverages tree-sitter for better syntax highlighting and structural text
|
||||||
editing. Requires [[doom-module::tools tree-sitter]].
|
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:+lsp]]
|
||||||
- if [[doom-module:+pyright]]
|
- if [[doom-module:+pyright]]
|
||||||
- [[doom-package:lsp-pyright]]
|
- [[doom-package:lsp-pyright]]
|
||||||
- else
|
|
||||||
- [[doom-package:lsp-python-ms]]
|
|
||||||
|
|
||||||
** Hacks
|
** Hacks
|
||||||
- [[doom-package:anaconda-mode]] is configured to activate when [[doom-package:lsp-mode]] (or [[doom-package:eglot]]) don't -- or
|
- [[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
|
;;; LSP
|
||||||
|
|
||||||
(eval-when! (and (modulep! +lsp)
|
(use-package! lsp-pyright
|
||||||
(not (modulep! :tools lsp +eglot)))
|
:when (modulep! +lsp)
|
||||||
|
:when (modulep! +pyright)
|
||||||
(use-package! lsp-python-ms
|
:when (not (modulep! :tools lsp +eglot))
|
||||||
:unless (modulep! +pyright)
|
:after lsp-mode)
|
||||||
: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))
|
|
||||||
|
|
|
@ -11,9 +11,8 @@
|
||||||
;; LSP
|
;; LSP
|
||||||
(when (modulep! +lsp)
|
(when (modulep! +lsp)
|
||||||
(unless (modulep! :tools lsp +eglot)
|
(unless (modulep! :tools lsp +eglot)
|
||||||
(if (modulep! +pyright)
|
(when (modulep! +pyright)
|
||||||
(package! lsp-pyright :pin "cc6df06aeaee3053eb800a24193483387b7b545b")
|
(package! lsp-pyright :pin "cc6df06aeaee3053eb800a24193483387b7b545b"))))
|
||||||
(package! lsp-python-ms :pin "7bda327bec7b219d140c34dab4b1e1fbd41bc516"))))
|
|
||||||
|
|
||||||
;; Programming environment
|
;; Programming environment
|
||||||
(package! anaconda-mode :pin "79fa9b4d2bda9f69857aeffb30c75276848a2810")
|
(package! anaconda-mode :pin "79fa9b4d2bda9f69857aeffb30c75276848a2810")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue