Added Hyuga installer

This commit is contained in:
Yuta Sakurai
2022-09-05 03:49:25 +09:00
committed by mattn
parent d3b8c83948
commit 574f1d60b0
5 changed files with 34 additions and 0 deletions

View File

@@ -113,6 +113,7 @@ You can change the directory to install servers by set `g:lsp_settings_servers_d
| HTML | html-languageserver | Yes | Yes |
| HTML | angular-language-server | Yes | Yes |
| HTML | tailwindcss-intellisense | Yes | Yes |
| Hy | hyuga | Yes | Yes |
| JSON | json-languageserver | Yes | Yes |
| JSON | rome | Yes | Yes |
| Jsonnet | jsonnet-language-server | Yes | Yes |

View File

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

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

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

View File

@@ -579,6 +579,17 @@
]
}
],
"hy": [
{
"command": "hyuga",
"url": "https://github.com/sakuraiyuta/hyuga",
"description": "Yet another hy language server",
"requires": [],
"root_uri_patterns": [
"__pycache__"
]
}
],
"java": [
{
"command": "eclipse-jdt-ls",

14
settings/hyuga.vim Normal file
View File

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