aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-16 00:15:36 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-16 00:15:36 +0900
commit9c86237918dd66067647ba724e9fce863d3cf2c7 (patch)
tree14a5602023ea75a0301f006306b8ba1590250608 /plugin
parent4bd54543faa2f1dd55ef0b47090b3b61a4a72423 (diff)
downloadvim-lsp-settings-9c86237918dd66067647ba724e9fce863d3cf2c7.tar.gz
vim-lsp-settings-9c86237918dd66067647ba724e9fce863d3cf2c7.tar.bz2
vim-lsp-settings-9c86237918dd66067647ba724e9fce863d3cf2c7.zip
Add servers directory to lsp_settings_extra_paths
Diffstat (limited to 'plugin')
-rw-r--r--plugin/lsp_setup.vim2
1 files changed, 2 insertions, 0 deletions
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