aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autoload/lsp_settings.vim1
-rw-r--r--plugin/lsp_setup.vim2
2 files changed, 3 insertions, 0 deletions
diff --git a/autoload/lsp_settings.vim b/autoload/lsp_settings.vim
index c14166e..c3dbfde 100644
--- a/autoload/lsp_settings.vim
+++ b/autoload/lsp_settings.vim
@@ -22,6 +22,7 @@ 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
if !has('win32')
return !empty(globpath(l:paths, a:cmd))
endif
diff --git a/plugin/lsp_setup.vim b/plugin/lsp_setup.vim
index 3bfcaa4..6f2a471 100644
--- a/plugin/lsp_setup.vim
+++ b/plugin/lsp_setup.vim
@@ -1,5 +1,6 @@
let s:settings_dir = expand('<sfile>:h:h').'/settings'
let s:installer_dir = expand('<sfile>:h:h').'/installer'
+let s:servers_dir = expand('<sfile>:h:h').'/servers'
let s:settings = json_decode(join(readfile(expand('<sfile>:h:h').'/settings.json'), "\n"))
function! s:executable(cmd) abort
@@ -10,6 +11,7 @@ function! s:executable(cmd) abort
if type(l:paths) == type([])
let l:paths = join(l:paths, ',')
endif
+ let l:paths .= ',' . s:servers_dir . '/' . a:cmd
if !has('win32')
return !empty(globpath(l:paths, a:cmd))
endif