diff options
author | ishitaku5522 <ishitaku5522@gmail.com> | 2020-01-21 00:11:12 +0900 |
---|---|---|
committer | ishitaku5522 <ishitaku5522@gmail.com> | 2020-01-21 00:11:12 +0900 |
commit | d47a625e3a2c65a90081204acadfc4dbbaeb3b98 (patch) | |
tree | a31aaa516523a7faf16926d8aad64aee9098bde0 | |
parent | b5760117d42a3e8e4aa3953ed252438866ea40aa (diff) | |
download | vim-lsp-settings-d47a625e3a2c65a90081204acadfc4dbbaeb3b98.tar.gz vim-lsp-settings-d47a625e3a2c65a90081204acadfc4dbbaeb3b98.tar.bz2 vim-lsp-settings-d47a625e3a2c65a90081204acadfc4dbbaeb3b98.zip |
add vue-language-server
-rw-r--r-- | installer/install-vls.cmd | 3 | ||||
-rwxr-xr-x | installer/install-vls.sh | 5 | ||||
-rw-r--r-- | settings.json | 8 | ||||
-rw-r--r-- | settings/vls.vim | 13 |
4 files changed, 29 insertions, 0 deletions
diff --git a/installer/install-vls.cmd b/installer/install-vls.cmd new file mode 100644 index 0000000..fdb0828 --- /dev/null +++ b/installer/install-vls.cmd @@ -0,0 +1,3 @@ +@echo off
+
+call "%~dp0\npm_install.cmd" vls vue-language-server
diff --git a/installer/install-vls.sh b/installer/install-vls.sh new file mode 100755 index 0000000..494e520 --- /dev/null +++ b/installer/install-vls.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +set -e + +"$(dirname $0)/npm_install.sh" vls vue-language-server diff --git a/settings.json b/settings.json index 6c8e019..cc5d78f 100644 --- a/settings.json +++ b/settings.json @@ -336,6 +336,14 @@ ] } ], + "vue": [ + { + "command": "vls", + "requires": [ + "npm" + ] + } + ], "xml": [ { "command": "lsp4xml", diff --git a/settings/vls.vim b/settings/vls.vim new file mode 100644 index 0000000..4d74fa3 --- /dev/null +++ b/settings/vls.vim @@ -0,0 +1,13 @@ +augroup vimlsp_settings_vls + au! + LspRegisterServer { + \ 'name': 'vls', + \ 'cmd': {server_info->lsp_settings#get('vls', 'cmd', [lsp_settings#exec_path('vls')])}, + \ 'root_uri':{server_info->lsp_settings#get('vls', 'root_uri', lsp_settings#root_uri(['.git/', 'package.json']))}, + \ 'initialization_options': lsp_settings#get('vls', 'initialization_options', {}), + \ 'whitelist': lsp_settings#get('vls', 'whitelist', ['vue']), + \ 'blacklist': lsp_settings#get('vls', 'blacklist', []), + \ 'config': lsp_settings#get('vls', 'config', {}), + \ 'workspace_config': lsp_settings#get('vls', 'workspace_config', {}), + \ } +augroup END |