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/eclipse-jdt-ls.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/eclipse-jdt-ls.vim')
-rw-r--r-- | settings/eclipse-jdt-ls.vim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/settings/eclipse-jdt-ls.vim b/settings/eclipse-jdt-ls.vim index 5cd9299..bf691be 100644 --- a/settings/eclipse-jdt-ls.vim +++ b/settings/eclipse-jdt-ls.vim @@ -3,6 +3,7 @@ augroup vimlsp_settings_eclipse_jdt_ls autocmd User lsp_setup ++once call lsp#register_server({ \ 'name': 'eclipse-jdt-ls', \ 'cmd': {server_info->lsp_settings#get('eclipse-jdt-ls', 'cmd', [lsp_settings#exec_path('eclipse-jdt-ls')])}, + \ 'root_uri':{server_info->lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/']))}, \ 'initialization_options': lsp_settings#get('eclipse-jdt-ls', 'initialization_options', v:null), \ 'whitelist': lsp_settings#get('eclipse-jdt-ls', 'whitelist', ['java']), \ 'blacklist': lsp_settings#get('eclipse-jdt-ls', 'blacklist', []), |