lsp-mode client leveraging Pyright language server
(use-package lsp-pyright
:ensure t
:hook (python-mode . (lambda ()
(require 'lsp-pyright)
(lsp)))) ; or lsp-deferred
lsp-pyright
supports the following configuration. Each configuration is described in detail in Pyright Settings.
pyright.disableLanguageServices
vialsp-pyright-disable-language-services
pyright.disableOrganizeImports
vialsp-pyright-disable-organize-imports
python.analysis.autoImportCompletions
vialsp-pyright-auto-import-completions
python.analysis.useLibraryCodeForTypes
vialsp-pyright-use-library-code-for-types
python.analysis.typeshedPaths
vialsp-pyright-typeshed-paths
python.analysis.diagnosticMode
vialsp-pyright-diagnostic-mode
python.analysis.typeCheckingMode
vialsp-pyright-typechecking-mode
python.analysis.logLevel
vialsp-pyright-log-level
python.analysis.autoSearchPaths
vialsp-pyright-auto-search-paths
python.analysis.extraPaths
vialsp-pyright-extra-paths
python.venvPath
vialsp-pyright-venv-path
Projects can be further configured using pyrightconfig.json
file. For further details please see Pyright Configuration.