mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-12 20:35:54 +01:00
Add basedpyright-langserver
This commit is contained in:
@@ -159,6 +159,7 @@ You can change the directory to install servers by set `g:lsp_settings_servers_d
|
||||
| Python | ruff-lsp | Yes | Yes |
|
||||
| Python | ty | Yes | Yes |
|
||||
| Python | zuban | Yes | Yes |
|
||||
| Python | basedpyright-langserver | Yes | Yes |
|
||||
| Prisma | prisma-language-server | Yes | Yes |
|
||||
| Qml | qmlls | Yes | Yes |
|
||||
| R | languageserver | Yes | No |
|
||||
|
||||
3
installer/install-basedpyright-langserver.cmd
Normal file
3
installer/install-basedpyright-langserver.cmd
Normal file
@@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
|
||||
call "%~dp0\pip_install.cmd" basedpyright-langserver basedpyright
|
||||
5
installer/install-basedpyright-langserver.sh
Executable file
5
installer/install-basedpyright-langserver.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
"$(dirname "$0")/pip_install.sh" basedpyright-langserver basedpyright
|
||||
@@ -1521,6 +1521,22 @@
|
||||
"requires": [
|
||||
"python3"
|
||||
]
|
||||
},
|
||||
{
|
||||
"command": "basedpyright-langserver",
|
||||
"url": "https://github.com/detachhead/basedpyright",
|
||||
"description": "Basedpyright is a fork of pyright with various type checking improvements, pylance features and more.",
|
||||
"requires": [
|
||||
"py"
|
||||
]
|
||||
},
|
||||
{
|
||||
"command": "basedpyright-langserver",
|
||||
"url": "https://github.com/detachhead/basedpyright",
|
||||
"description": "Basedpyright is a fork of pyright with various type checking improvements, pylance features and more.",
|
||||
"requires": [
|
||||
"python3"
|
||||
]
|
||||
}
|
||||
],
|
||||
"qml": [
|
||||
|
||||
20
settings/basedpyright-langserver.vim
Normal file
20
settings/basedpyright-langserver.vim
Normal file
@@ -0,0 +1,20 @@
|
||||
augroup vim_lsp_settings_basedpyright_langserver
|
||||
au!
|
||||
LspRegisterServer {
|
||||
\ 'name': 'basedpyright-langserver',
|
||||
\ 'cmd': {server_info->lsp_settings#get('basedpyright-langserver', 'cmd', [lsp_settings#exec_path('basedpyright-langserver')]+lsp_settings#get('basedpyright-langserver', 'args', ['--stdio']))},
|
||||
\ 'root_uri':{server_info->lsp_settings#get('basedpyright-langserver', 'root_uri', lsp_settings#root_uri('basedpyright-langserver'))},
|
||||
\ 'initialization_options': lsp_settings#get('basedpyright-langserver', 'initialization_options', v:null),
|
||||
\ 'allowlist': lsp_settings#get('basedpyright-langserver', 'allowlist', ['python']),
|
||||
\ 'blocklist': lsp_settings#get('basedpyright-langserver', 'blocklist', []),
|
||||
\ 'config': lsp_settings#get('basedpyright-langserver', 'config', lsp_settings#server_config('basedpyright-langserver')),
|
||||
\ 'workspace_config': lsp_settings#get('basedpyright-langserver', 'workspace_config', {
|
||||
\ 'python': {
|
||||
\ 'analysis': {
|
||||
\ 'useLibraryCodeForTypes': v:true
|
||||
\ },
|
||||
\ },
|
||||
\ }),
|
||||
\ 'semantic_highlight': lsp_settings#get('basedpyright-langserver', 'semantic_highlight', {}),
|
||||
\ }
|
||||
augroup END
|
||||
Reference in New Issue
Block a user