languages/python: support zuban language server

https://zubanls.com/
This commit is contained in:
dish 2026-01-23 19:17:31 -05:00
commit d47d7c7542
2 changed files with 18 additions and 1 deletions

View file

@ -132,7 +132,8 @@
- Added [sqruff](https://github.com/quarylabs/sqruff) support to `languages.sql` - Added [sqruff](https://github.com/quarylabs/sqruff) support to `languages.sql`
- Added [Pyrefly](https://pyrefly.org/) support to `languages.python` - Added [Pyrefly](https://pyrefly.org/) and [zuban](https://zubanls.com/)
support to `languages.python`
- Added TOML support via {option}`languages.toml` and the - Added TOML support via {option}`languages.toml` and the
[Tombi](https://tombi-toml.github.io/tombi/) language server, linter, and [Tombi](https://tombi-toml.github.io/tombi/) language server, linter, and

View file

@ -169,6 +169,22 @@
".git" ".git"
]; ];
}; };
zuban = {
enable = true;
cmd = [(getExe pkgs.zuban) "server"];
filetypes = ["python"];
root_markers = [
"pyproject.toml"
"setup.py"
"setup.cfg"
"requirements.txt"
"Pipfile"
".git"
"mypy.ini"
".mypy.ini"
];
};
}; };
defaultFormat = ["black"]; defaultFormat = ["black"];