diff options
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 |