aboutsummaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorthinca <thinca@gmail.com>2019-12-31 22:57:15 +0900
committerthinca <thinca@gmail.com>2019-12-31 23:17:26 +0900
commitfef383ee4daca1b856d7f001b6696bb210a1442c (patch)
treed81979018c0296bf8e320c24b9166a36438fd8c6 /autoload
parent319f7ad838e62a182ccff654c832d63733ed3719 (diff)
downloadvim-lsp-settings-fef383ee4daca1b856d7f001b6696bb210a1442c.tar.gz
vim-lsp-settings-fef383ee4daca1b856d7f001b6696bb210a1442c.tar.bz2
vim-lsp-settings-fef383ee4daca1b856d7f001b6696bb210a1442c.zip
Add g:lsp_settings_servers_dir option
Diffstat (limited to 'autoload')
-rw-r--r--autoload/lsp_settings.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/autoload/lsp_settings.vim b/autoload/lsp_settings.vim
index 1685bce..f8c145d 100644
--- a/autoload/lsp_settings.vim
+++ b/autoload/lsp_settings.vim
@@ -50,7 +50,8 @@ function! lsp_settings#exec_path(cmd) abort
if type(l:paths) == type([])
let l:paths = join(l:paths, ',') . ','
endif
- let l:paths .= s:servers_dir . '/' . a:cmd
+ let l:servers_dir = get(g:, 'lsp_settings_servers_dir', s:servers_dir)
+ let l:paths .= l:servers_dir . '/' . a:cmd
if !has('win32')
return s:first_one(globpath(l:paths, a:cmd))
endif