aboutsummaryrefslogtreecommitdiff
path: root/settings/gql-language-server.vim
diff options
context:
space:
mode:
authorDavid Briscoe <idbrii@gmail.com>2020-01-22 23:33:46 -0800
committerDavid Briscoe <idbrii@gmail.com>2020-01-23 00:44:59 -0800
commitd2f5a63ff5db6e1a8f9124d4cc8149c97129dd9a (patch)
tree882ceb47961a71bf35de9cb90e8aba1966771988 /settings/gql-language-server.vim
parent648e5cb53b522d54a2746680919caba59b0bd190 (diff)
downloadvim-lsp-settings-d2f5a63ff5db6e1a8f9124d4cc8149c97129dd9a.tar.gz
vim-lsp-settings-d2f5a63ff5db6e1a8f9124d4cc8149c97129dd9a.tar.bz2
vim-lsp-settings-d2f5a63ff5db6e1a8f9124d4cc8149c97129dd9a.zip
Support svn, hg, bzr as root markers
Move common root marker list to plugin/lsp_settings.vim. Update all uses to merge the two lists. Test: :edit lsp-settings/data/catalog.json :Verbose ec lsp_settings#root_uri(extend(['catalog.json'], g:lsp_settings_root_markers)) file:///C:/david/settings/daveconfig/multi/vim/bundle/lsp-settings/data :Verbose ec lsp_settings#root_uri(g:lsp_settings_root_markers) file:///C:/david/settings/daveconfig :Verbose ec lsp_settings#root_uri(extend(['rebar.config'], g:lsp_settings_root_markers)) file:///C:/david/settings/daveconfig Install rls and edit a rust file.
Diffstat (limited to 'settings/gql-language-server.vim')
-rw-r--r--settings/gql-language-server.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/gql-language-server.vim b/settings/gql-language-server.vim
index 2e07acd..8fe118d 100644
--- a/settings/gql-language-server.vim
+++ b/settings/gql-language-server.vim
@@ -3,7 +3,7 @@ augroup vimlsp_settings_gql_language_server
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']))},
+ \ 'root_uri':{server_info->lsp_settings#get('gql-language-server', 'root_uri', lsp_settings#root_uri(extend(['package.json', 'tsconfig.json', '.gqlconfig'], g:lsp_settings_root_markers)))},
\ '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', []),