diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2020-01-21 23:02:34 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2020-01-21 23:02:34 +0900 |
commit | 1ed1f27e9a1a090393b65337037ae2defde3a2e8 (patch) | |
tree | aa4fdea6217e852e072b873f1748755a643e973b /settings/gql-language-server.vim | |
parent | 3f2a222c14aed65d588a1770991f47ab5aa651eb (diff) | |
download | vim-lsp-settings-1ed1f27e9a1a090393b65337037ae2defde3a2e8.tar.gz vim-lsp-settings-1ed1f27e9a1a090393b65337037ae2defde3a2e8.tar.bz2 vim-lsp-settings-1ed1f27e9a1a090393b65337037ae2defde3a2e8.zip |
Add gql-language-server
Diffstat (limited to 'settings/gql-language-server.vim')
-rw-r--r-- | settings/gql-language-server.vim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/settings/gql-language-server.vim b/settings/gql-language-server.vim new file mode 100644 index 0000000..2e07acd --- /dev/null +++ b/settings/gql-language-server.vim @@ -0,0 +1,13 @@ +augroup vimlsp_settings_gql_language_server + au! + LspRegisterServer { + \ 'name': 'gql-language-server', + \ 'cmd': {server_info->lsp_settings#get('gql-language-server', 'cmd', [lsp_settings#exec_path('gql-language-server'), '--stdio'])}, + \ 'root_uri':{server_info->lsp_settings#get('gql-language-server', 'root_uri', lsp_settings#root_uri(['.git/', 'package.json', 'tsconfig.json', '.gqlconfig']))}, + \ 'initialization_options': lsp_settings#get('gql-language-server', 'initialization_options', {"diagnostics": "true"}), + \ 'whitelist': lsp_settings#get('gql-language-server', 'whitelist', ['graphql']), + \ 'blacklist': lsp_settings#get('gql-language-server', 'blacklist', []), + \ 'config': lsp_settings#get('gql-language-server', 'config', {}), + \ 'workspace_config': lsp_settings#get('gql-language-server', 'workspace_config', {}), + \ } +augroup END |