diff options
Diffstat (limited to 'settings/javascript-typescript-langserver.vim')
-rw-r--r-- | settings/javascript-typescript-langserver.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/javascript-typescript-langserver.vim b/settings/javascript-typescript-langserver.vim index d119238..1ed4341 100644 --- a/settings/javascript-typescript-langserver.vim +++ b/settings/javascript-typescript-langserver.vim @@ -3,7 +3,7 @@ augroup vimlsp_settings_javascript_typescript_langserver autocmd User lsp_setup ++once call lsp#register_server({ \ 'name': 'javascript-typescript-langserver', \ 'cmd': {server_info->lsp_settings#get('javascript-typescript-langserver', 'cmd', [lsp_settings#exec_path('javascript-typescript-langserver')])}, - \ 'root_uri':{server_info->lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), 'package.json'))}, + \ 'root_uri':{server_info->lsp_settings#get('javascript-typescript-langserver', 'root_uri', lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/'])))}, \ 'initialization_options': lsp_settings#get('javascript-typescript-langserver', 'initialization_options', {"diagnostics": "true"}), \ 'whitelist': lsp_settings#get('javascript-typescript-langserver', 'whitelist', ['javascript']), \ 'blacklist': lsp_settings#get('javascript-typescript-langserver', 'blacklist', []), |