aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-15 23:17:22 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-15 23:17:22 +0900
commit1fe4ab347626732c1d4f56f4f7255bc979abec1c (patch)
tree246f9d29320fcf2624b91f4c20d7f1b7aa304282 /plugin
parent5d9e059405ee54fe19322ee9d1544c32c9ffe7cc (diff)
downloadvim-lsp-settings-1fe4ab347626732c1d4f56f4f7255bc979abec1c.tar.gz
vim-lsp-settings-1fe4ab347626732c1d4f56f4f7255bc979abec1c.tar.bz2
vim-lsp-settings-1fe4ab347626732c1d4f56f4f7255bc979abec1c.zip
Add clangd
Diffstat (limited to 'plugin')
-rw-r--r--plugin/lsp_setup.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/lsp_setup.vim b/plugin/lsp_setup.vim
index 074de49..c21626b 100644
--- a/plugin/lsp_setup.vim
+++ b/plugin/lsp_setup.vim
@@ -4,7 +4,7 @@ let s:setting = json_decode(join(readfile(expand('<sfile>:h:h').'/setting.json')
function! s:executable(cmd) abort
if executable(a:cmd)
- return a:cmd
+ return 1
endif
let l:paths = get(g:, 'lsp_settings_extra_paths', '')
if type(l:paths) == type([])
@@ -79,6 +79,7 @@ function! s:vimlsp_setting() abort
continue
endif
for l:server in s:setting[l:ft]
+ echomsg l:server.command
if s:executable(l:server.command)
exe 'source' printf('%s/%s.vim', s:setting_dir, l:server.command)
let l:found += 1