Add veryl language server

This commit is contained in:
dalance
2023-01-26 10:16:15 +09:00
committed by mattn
parent 0db770d271
commit 241fb5d89c
5 changed files with 53 additions and 0 deletions

View File

@@ -173,6 +173,7 @@ You can change the directory to install servers by set `g:lsp_settings_servers_d
| TypeScript | eslint-language-server | Yes | Yes |
| Vim | vim-language-server | Yes | Yes |
| Vala | vala-language-server | No | No |
| Veryl | veryl-ls | Yes | Yes |
| Vue | volar-server | Yes | Yes |
| Vue | vls | Yes | Yes |
| V | vlang-vls | Yes | Yes |

View File

@@ -0,0 +1,7 @@
@echo off
setlocal
curl -L -o veryl-x86_64-windows.zip "https://github.com/dalance/veryl/releases/latest/download/veryl-x86_64-windows.zip"
call "%~dp0\run_unzip.cmd" veryl-x86_64-windows.zip
del veryl.exe
del veryl-x86_64-windows.zip

23
installer/install-veryl-ls.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
set -e
os=$(uname -s | tr "[:upper:]" "[:lower:]")
case $os in
linux)
os="linux"
;;
darwin)
os="mac"
;;
*)
printf "%s doesn't supported by bash installer" "$os"
exit 1
;;
esac
curl -L -o veryl-x86_64-$os.zip "https://github.com/dalance/veryl/releases/latest/download/veryl-x86_64-$os.zip"
unzip veryl-x86_64-$os.zip
rm veryl
rm veryl-x86_64-$os.zip

View File

@@ -1589,6 +1589,14 @@
]
}
],
"veryl": [
{
"command": "veryl-ls",
"url": "https://github.com/dalance/veryl",
"description": "Veryl language server",
"requires": []
}
],
"vim": [
{
"command": "vim-language-server",

14
settings/veryl-ls.vim Normal file
View File

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