From d2f5a63ff5db6e1a8f9124d4cc8149c97129dd9a Mon Sep 17 00:00:00 2001 From: David Briscoe Date: Wed, 22 Jan 2020 23:33:46 -0800 Subject: 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. --- settings/clangd.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'settings/clangd.vim') diff --git a/settings/clangd.vim b/settings/clangd.vim index a593dfb..a23bb1b 100644 --- a/settings/clangd.vim +++ b/settings/clangd.vim @@ -3,7 +3,7 @@ augroup vimlsp_settings_clangd LspRegisterServer { \ 'name': 'clangd', \ 'cmd': {server_info->lsp_settings#get('clangd', 'cmd', [lsp_settings#exec_path('clangd')])}, - \ 'root_uri':{server_info->lsp_settings#get('clangd', 'root_uri', lsp_settings#root_uri(['.git/']))}, + \ 'root_uri':{server_info->lsp_settings#get('clangd', 'root_uri', lsp_settings#root_uri(g:lsp_settings_root_markers))}, \ 'initialization_options': lsp_settings#get('clangd', 'initialization_options', v:null), \ 'whitelist': lsp_settings#get('clangd', 'whitelist', ['c', 'cpp', 'objc', 'objcpp']), \ 'blacklist': lsp_settings#get('clangd', 'blacklist', []), -- cgit v1.2.3-54-g00ecf