mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-12 20:35:54 +01:00
add plpgsql-lsp
This commit is contained in:
committed by
mattn
parent
bf2fc6f1a8
commit
9de766b054
16
installer/install-plpgsql-lsp.sh
Executable file
16
installer/install-plpgsql-lsp.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
git clone --depth=1 https://github.com/UniqueVision/plpgsql-lsp .
|
||||
npm install
|
||||
npm run build
|
||||
|
||||
cat <<EOF >plpgsql-lsp
|
||||
#!/usr/bin/env bash
|
||||
|
||||
DIR=\$(cd \$(dirname \$0); pwd)
|
||||
node \$DIR/server/out/server.js \$*
|
||||
EOF
|
||||
|
||||
chmod +x plpgsql-lsp
|
||||
@@ -1270,6 +1270,14 @@
|
||||
"requires": [
|
||||
"go"
|
||||
]
|
||||
},
|
||||
{
|
||||
"command": "plpgsql-lsp",
|
||||
"url": "https://github.com/UniqueVision/plpgsql-lsp",
|
||||
"description": "PL/pgSQL Language Server",
|
||||
"requires": [
|
||||
"npm"
|
||||
]
|
||||
}
|
||||
],
|
||||
"svelte": [
|
||||
|
||||
14
settings/plpgsql-lsp.vim
Normal file
14
settings/plpgsql-lsp.vim
Normal file
@@ -0,0 +1,14 @@
|
||||
augroup vim_lsp_settings_plpgsql_lsp
|
||||
au!
|
||||
LspRegisterServer {
|
||||
\ 'name': 'plpgsql-lsp',
|
||||
\ 'cmd': {server_info->lsp_settings#get('plpgsql-lsp', 'cmd', [lsp_settings#exec_path('plpgsql-lsp')]+lsp_settings#get('plpgsql-lsp', 'args', ['--stdio']))},
|
||||
\ 'root_uri':{server_info->lsp_settings#get('plpgsql-lsp', 'root_uri', lsp_settings#root_uri('plpgsql-lsp'))},
|
||||
\ 'initialization_options': lsp_settings#get('plpgsql-lsp', 'initialization_options', v:null),
|
||||
\ 'allowlist': lsp_settings#get('plpgsql-lsp', 'allowlist', ['sql']),
|
||||
\ 'blocklist': lsp_settings#get('plpgsql-lsp', 'blocklist', []),
|
||||
\ 'config': lsp_settings#get('plpgsql-lsp', 'config', lsp_settings#server_config('plpgsql-lsp')),
|
||||
\ 'workspace_config': lsp_settings#get('plpgsql-lsp', 'workspace_config', {}),
|
||||
\ 'semantic_highlight': lsp_settings#get('plpgsql-lsp', 'semantic_highlight', {}),
|
||||
\ }
|
||||
augroup END
|
||||
Reference in New Issue
Block a user