Add zuban(Python type checker and language server)

This commit is contained in:
Shinya Ohyanagi
2025-09-24 13:09:18 +09:00
committed by mattn
parent e8d6418e5b
commit a80c2f9dd7
5 changed files with 39 additions and 0 deletions

View File

@@ -158,6 +158,7 @@ You can change the directory to install servers by set `g:lsp_settings_servers_d
| Python | ruff | Yes | Yes |
| Python | ruff-lsp | Yes | Yes |
| Python | ty | Yes | Yes |
| Python | zuban | Yes | Yes |
| Prisma | prisma-language-server | Yes | Yes |
| Qml | qmlls | Yes | Yes |
| R | languageserver | Yes | No |

View File

@@ -0,0 +1,3 @@
@echo off
call "%~dp0\pip_install.cmd" zuban zuban

5
installer/install-zuban.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/sh
set -e
"$(dirname "$0")/pip_install.sh" zuban zuban

View File

@@ -1505,6 +1505,22 @@
"requires": [
"python3"
]
},
{
"command": "zuban",
"url": "https://zubanls.com",
"description": "The Python Language Server for Professionals. A Mypy-compatible Python Language Server built in Rust",
"requires": [
"py"
]
},
{
"command": "zuban",
"url": "https://zubanls.com",
"description": "The Python Language Server for Professionals. A Mypy-compatible Python Language Server built in Rust",
"requires": [
"python3"
]
}
],
"qml": [

14
settings/zuban.vim Normal file
View File

@@ -0,0 +1,14 @@
augroup vim_lsp_settings_zuban
au!
LspRegisterServer {
\ 'name': 'zuban',
\ 'cmd': {server_info->lsp_settings#get('zuban', 'cmd', [lsp_settings#exec_path('zuban')]+lsp_settings#get('zuban', 'args', ['server']))},
\ 'root_uri':{server_info->lsp_settings#get('zuban', 'root_uri', lsp_settings#root_uri('zuban'))},
\ 'initialization_options': lsp_settings#get('zuban', 'initialization_options', v:null),
\ 'allowlist': lsp_settings#get('zuban', 'allowlist', ['python']),
\ 'blocklist': lsp_settings#get('zuban', 'blocklist', []),
\ 'config': lsp_settings#get('zuban', 'config', lsp_settings#server_config('zuban')),
\ 'workspace_config': lsp_settings#get('zuban', 'workspace_config', {}),
\ 'semantic_highlight': lsp_settings#get('zuban', 'semantic_highlight', {}),
\ }
augroup END