feat(lsp): add zuban and jedi-language-server configs, default to zuban#32
Open
Laughing-q wants to merge 3 commits into
Open
feat(lsp): add zuban and jedi-language-server configs, default to zuban#32Laughing-q wants to merge 3 commits into
Laughing-q wants to merge 3 commits into
Conversation
Adds two new Python LSP alternatives alongside the existing pyright config: - Zuban (default): high-performance Python LSP written in Rust by the author of Jedi. Optimized for low memory and CPU usage. Install: pip install zuban - jedi-language-server: lightweight, fast, low RAM option. Install: pip install jedi-language-server Pyright config is kept but disabled by default so users can easily switch between zuban, jedi-language-server, and pyright by toggling the vim.lsp.enable() lines. Neovim 0.11+ native vim.lsp.config()/vim.lsp.enable() API is used.
Zuban's default type-checking behaviour is stricter than the user's previous pyright config (typeCheckingMode = off). This adds a dedicated settings file that disables the strictest checks so Zuban feels similar: - strict = false - disallow_untyped_defs = false - warn_unreachable = false - check_untyped_defs = false - follow_untyped_imports = true - ignore_missing_imports = true - allow_untyped_globals = true - exclude_gitignore = true Zuban also respects [tool.zuban] in pyproject.toml / mypy.ini, so users can override per-project if needed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds two new Python LSP alternatives alongside the existing pyright config.
New servers added
Zuban (enabled by default): High-performance Python LSP written in Rust by David Halter (author of Jedi). Optimized for low memory and CPU usage. 20-200x faster than Mypy.
jedi-language-server (disabled by default): Lightweight, fast, low RAM option. Good for pure completion/navigation without type checking.
Changes
Switching between Python LSPs
To try a different server, edit lua/lq/configs/lsp/lspconfig.lua and change: