bump: :lang python
emacs-lsp/lsp-pyright@cc6df06aea -> emacs-lsp/lsp-pyright@0c0d72aedd necaris/conda.el@60e14d1e97 -> necaris/conda.el@ce748a53f9 pythonic-emacs/anaconda-mode@79fa9b4d2b -> pythonic-emacs/anaconda-mode@f900bd7656 pythonic-emacs/company-anaconda@1fe526163c -> pythonic-emacs/company-anaconda@169252fca7 pythonic-emacs/pyenv-mode@de0d750b9c -> pythonic-emacs/pyenv-mode@76787ea44f wbolster/emacs-python-pytest@9f850e22df -> wbolster/emacs-python-pytest@dcdaec6fe2 - Adds basedpyright support to lsp-pyright; and will prioritize it above pyright, if found on your system. Ref: emacs-lsp/lsp-pyright#101
This commit is contained in:
parent
424b7af45f
commit
1fa1eba5ac
3 changed files with 13 additions and 9 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 (=pyls=, =jedi=, =ruff=, or =pyright=)
|
- LSP integration (=pyls=, =jedi=, =ruff=, =pyright=, or =basedpyright=)
|
||||||
|
|
||||||
** Maintainers
|
** Maintainers
|
||||||
- [[doom-user:][@hlissner]]
|
- [[doom-user:][@hlissner]]
|
||||||
|
@ -86,9 +86,10 @@ For LSP support the [[doom-module::tools lsp]] module must be enabled, along wit
|
||||||
|
|
||||||
An alternative LSP server can be used by installing them through the
|
An alternative LSP server can be used by installing them through the
|
||||||
[[cmd:][lsp-install-server]] command, or an external package manager. For example:
|
[[cmd:][lsp-install-server]] command, or an external package manager. For example:
|
||||||
|
- To install *basedpyright*: ~$ pip install basedpyright~
|
||||||
|
- To install *pyright*: ~$ pip install pyright~ or ~$ npm i -g pyright~.
|
||||||
- To install [[https://pypi.org/project/python-language-server/][*pyls*]]: ~$ pip install python-language-server[all]~.
|
- To install [[https://pypi.org/project/python-language-server/][*pyls*]]: ~$ pip install python-language-server[all]~.
|
||||||
- To install *mspyls*: ~M-x lsp-install-server RET mspyls~.
|
- To install *mspyls*: ~M-x lsp-install-server RET mspyls~.
|
||||||
- To install *pyright*: ~$ pip install pyright~ or ~$ npm i -g pyright~.
|
|
||||||
|
|
||||||
** Formatter
|
** Formatter
|
||||||
|
|
||||||
|
|
|
@ -353,4 +353,7 @@
|
||||||
:when (modulep! +lsp)
|
:when (modulep! +lsp)
|
||||||
:when (modulep! +pyright)
|
:when (modulep! +pyright)
|
||||||
:when (not (modulep! :tools lsp +eglot))
|
:when (not (modulep! :tools lsp +eglot))
|
||||||
:after lsp-mode)
|
:after lsp-mode
|
||||||
|
:init
|
||||||
|
(when-let ((exe (executable-find "basedpyright")))
|
||||||
|
(setq lsp-pyright-langserver-command exe)))
|
||||||
|
|
|
@ -12,26 +12,26 @@
|
||||||
(when (modulep! +lsp)
|
(when (modulep! +lsp)
|
||||||
(unless (modulep! :tools lsp +eglot)
|
(unless (modulep! :tools lsp +eglot)
|
||||||
(when (modulep! +pyright)
|
(when (modulep! +pyright)
|
||||||
(package! lsp-pyright :pin "cc6df06aeaee3053eb800a24193483387b7b545b"))))
|
(package! lsp-pyright :pin "0c0d72aedd18b16f48379b7d2f9ecb9c068713b0"))))
|
||||||
|
|
||||||
;; Programming environment
|
;; Programming environment
|
||||||
(package! anaconda-mode :pin "79fa9b4d2bda9f69857aeffb30c75276848a2810")
|
(package! anaconda-mode :pin "f900bd7656a03aa24ef3295251f266736f7756eb")
|
||||||
(when (modulep! :completion company)
|
(when (modulep! :completion company)
|
||||||
(package! company-anaconda :pin "1fe526163c265891cc20d971dc58b661ad8bcf23"))
|
(package! company-anaconda :pin "169252fca79a79da41ef22f2ec0eab0cf1313966"))
|
||||||
|
|
||||||
;; Environment management
|
;; Environment management
|
||||||
(package! pipenv :pin "3af159749824c03f59176aff7f66ddd6a5785a10")
|
(package! pipenv :pin "3af159749824c03f59176aff7f66ddd6a5785a10")
|
||||||
(package! pyvenv :pin "31ea715f2164dd611e7fc77b26390ef3ca93509b")
|
(package! pyvenv :pin "31ea715f2164dd611e7fc77b26390ef3ca93509b")
|
||||||
(when (modulep! +pyenv)
|
(when (modulep! +pyenv)
|
||||||
(package! pyenv-mode :pin "de0d750b9c3057fd7cecc72e6a290902a0475afe"))
|
(package! pyenv-mode :pin "76787ea44f633426df402341663784db3a9e9639"))
|
||||||
(when (modulep! +conda)
|
(when (modulep! +conda)
|
||||||
(package! conda :pin "60e14d1e9793431b91913a5688e278bd91d56224"))
|
(package! conda :pin "ce748a53f9c7d7a7d112632d32c848d6e5482e18"))
|
||||||
(when (modulep! +poetry)
|
(when (modulep! +poetry)
|
||||||
(package! poetry :pin "1dff0d4a51ea8aff5f6ce97b154ea799902639ad"))
|
(package! poetry :pin "1dff0d4a51ea8aff5f6ce97b154ea799902639ad"))
|
||||||
|
|
||||||
;; Testing frameworks
|
;; Testing frameworks
|
||||||
(package! nose :pin "f8528297519eba911696c4e68fa88892de9a7b72")
|
(package! nose :pin "f8528297519eba911696c4e68fa88892de9a7b72")
|
||||||
(package! python-pytest :pin "9f850e22df93812a5b109968c549f9b3dd828ed1")
|
(package! python-pytest :pin "dcdaec6fe203f08bda0f5ee1931370dfd075a4ff")
|
||||||
|
|
||||||
;; Import managements
|
;; Import managements
|
||||||
(package! pyimport :pin "4398ce8dd64fa0f685f4bf8683a35087649346d3")
|
(package! pyimport :pin "4398ce8dd64fa0f685f4bf8683a35087649346d3")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue