From a7c843b879f937007c9c20751e8258e31c050cad Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Wed, 25 Dec 2019 13:47:15 +0900 Subject: Fix root_uri for vim-language-server --- settings/vim-language-server.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings/vim-language-server.vim b/settings/vim-language-server.vim index 3281ef1..f3497b9 100644 --- a/settings/vim-language-server.vim +++ b/settings/vim-language-server.vim @@ -3,7 +3,7 @@ augroup vimlsp_settings_vim_language_server LspRegisterServer { \ 'name': 'vim-language-server', \ 'cmd': {server_info->lsp_settings#get('vim-language-server', 'cmd', [lsp_settings#exec_path('vim-language-server'), '--stdio'])}, - \ 'root_uri':{server_info->lsp_settings#get('vim-language-server', 'root_uri', lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/'])))}, + \ 'root_uri':{server_info->lsp_settings#get('vim-language-server', 'root_uri', lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/', '.vim/', 'vimfiles/'])))}, \ 'initialization_options': { 'vimruntime': $VIMRUNTIME, 'runtimepath': &rtp }, \ 'whitelist': ['vim'], \ 'blacklist': lsp_settings#get('bash-language-server', 'blacklist', []), -- cgit v1.2.3-54-g00ecf