add: helm-ls

This commit is contained in:
raa0121
2024-03-23 23:00:51 +09:00
committed by mattn
parent 38e75b1349
commit 9bb728d0f0
5 changed files with 54 additions and 0 deletions

View File

@@ -111,6 +111,7 @@ You can change the directory to install servers by set `g:lsp_settings_servers_d
| Groovy | groovy-language-server | Yes | Yes |
| Haskell | haskell-ide-engine | No | No |
| Haskell | haskell-language-server | No | No |
| Helm | helm-ls | Yes | Yes |
| HTML | html-languageserver | Yes | Yes |
| HTML | angular-language-server | Yes | Yes |
| HTML | tailwindcss-intellisense | Yes | Yes |

View File

@@ -0,0 +1,5 @@
@echo off
setlocal
echo Downloading helm-ls...
curl -L -o helm-ls.exe "https://github.com/mrjosh/helm-ls/releases/latest/download/helm_ls_windows_amd64.exe"

View File

@@ -0,0 +1,25 @@
#!/bin/sh
set -e
os=$(uname -s | tr "[:upper:]" "[:lower:]")
case $os in
linux)
if [ "$(uname -m)" = "x86_64" ]; then
filename="helm_ls_linux_amd64"
else
filename="helm_ls_linux_arm"
fi
;;
darwin)
if [ "$(uname -m)" = "x86_64" ]; then
filename="helm_ls_darwin_amd64"
else
filename="helm_ls_darwin_arm"
fi
;;
esac
curl -L -o helm-ls "https://github.com/mrjosh/helm-ls/releases/latest/download/$filename"
chmod 755 helm-ls

View File

@@ -560,6 +560,14 @@
]
}
],
"helm": [
{
"command": "helm-ls",
"url": "https://github.com/mrjosh/helm-ls",
"description": "Helm-ls is a helm language server protocol LSP implementation.",
"requires": []
}
],
"html": [
{
"command": "vscode-html-language-server",

15
settings/help-ls.vim Normal file
View File

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