aboutsummaryrefslogtreecommitdiff
path: root/settings/lsp4xml.vim
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-24 09:57:43 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-24 09:57:43 +0900
commit6bb33eb9bfeb5f2edf29f6fe517dd94014e67e88 (patch)
treea67e8d0265affa4e5ed3e1f11211c0d0eb9eb062 /settings/lsp4xml.vim
parentee41d1afba8c94bab2a5fcfc199b5fede219e7cf (diff)
downloadvim-lsp-settings-6bb33eb9bfeb5f2edf29f6fe517dd94014e67e88.tar.gz
vim-lsp-settings-6bb33eb9bfeb5f2edf29f6fe517dd94014e67e88.tar.bz2
vim-lsp-settings-6bb33eb9bfeb5f2edf29f6fe517dd94014e67e88.zip
Set root_uri
Diffstat (limited to 'settings/lsp4xml.vim')
-rw-r--r--settings/lsp4xml.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/settings/lsp4xml.vim b/settings/lsp4xml.vim
index 8fc4f61..21fcfd5 100644
--- a/settings/lsp4xml.vim
+++ b/settings/lsp4xml.vim
@@ -3,6 +3,7 @@ augroup vimlsp_settings_lsp4xml
autocmd User lsp_setup ++once call lsp#register_server({
\ 'name': 'lsp4xml',
\ 'cmd': {server_info->lsp_settings#get('lsp4xml', 'cmd', [lsp_settings#exec_path('lsp4xml')])},
+ \ 'root_uri':{server_info->lsp_settings#get('lsp4xml', 'root_uri', lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/'])))},
\ 'whitelist': lsp_settings#get('lsp4xml', 'whitelist', ['xml']),
\ 'blacklist': lsp_settings#get('lsp4xml', 'blacklist', []),
\ 'config': lsp_settings#get('lsp4xml', 'config', {}),