mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-12 20:35:54 +01:00
Add zuban(Python type checker and language server)
This commit is contained in:
@@ -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 |
|
||||
|
||||
3
installer/install-zuban.cmd
Normal file
3
installer/install-zuban.cmd
Normal file
@@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
|
||||
call "%~dp0\pip_install.cmd" zuban zuban
|
||||
5
installer/install-zuban.sh
Executable file
5
installer/install-zuban.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
"$(dirname "$0")/pip_install.sh" zuban zuban
|
||||
@@ -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
14
settings/zuban.vim
Normal 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
|
||||
Reference in New Issue
Block a user