diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-24 09:57:43 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-24 09:57:43 +0900 |
commit | 6bb33eb9bfeb5f2edf29f6fe517dd94014e67e88 (patch) | |
tree | a67e8d0265affa4e5ed3e1f11211c0d0eb9eb062 /settings/vim-language-server.vim | |
parent | ee41d1afba8c94bab2a5fcfc199b5fede219e7cf (diff) | |
download | vim-lsp-settings-6bb33eb9bfeb5f2edf29f6fe517dd94014e67e88.tar.gz vim-lsp-settings-6bb33eb9bfeb5f2edf29f6fe517dd94014e67e88.tar.bz2 vim-lsp-settings-6bb33eb9bfeb5f2edf29f6fe517dd94014e67e88.zip |
Set root_uri
Diffstat (limited to 'settings/vim-language-server.vim')
-rw-r--r-- | settings/vim-language-server.vim | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/settings/vim-language-server.vim b/settings/vim-language-server.vim index 153fe7b..971331b 100644 --- a/settings/vim-language-server.vim +++ b/settings/vim-language-server.vim @@ -3,10 +3,11 @@ augroup vimlsp_settings_vim_language_server autocmd User lsp_setup ++once call lsp#register_server({ \ 'name': 'vim-language-server', \ 'cmd': {server_info->lsp_settings#get('vim-language-server', 'cmd', [lsp_settings#exec_path('vim-language-server'), '--stdio'])}, - \ 'initialization_options': { - \ 'vimruntime': $VIMRUNTIME, - \ 'runtimepath': &rtp, - \ }, + \ '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/'])))}, + \ 'initialization_options': { 'vimruntime': $VIMRUNTIME, 'runtimepath': &rtp }, \ 'whitelist': ['vim'], + \ 'blacklist': lsp_settings#get('bash-language-server', 'blacklist', []), + \ 'config': lsp_settings#get('bash-language-server', 'config', {}), + \ 'workspace_config': lsp_settings#get('bash-language-server', 'workspace_config', {}), \ }) augroup END |