mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 12:50:04 +08:00
fix(pmd): check executable of Pmd_Cmd
This commit is contained in:
parent
5de1889197
commit
84cb742b9a
@ -92,6 +92,12 @@ endfunction
|
||||
" @vimlint(EVL103, 0, a:event)
|
||||
|
||||
function! SpaceVim#plugins#pmd#run(...) abort
|
||||
if !executable(g:Pmd_Cmd[0])
|
||||
echohl WarningMsg
|
||||
echo g:Pmd_Cmd[0] .. ' is not executable'
|
||||
echohl None
|
||||
return
|
||||
endif
|
||||
let argv = g:Pmd_Cmd + a:000
|
||||
if index(a:000, '-R') == -1
|
||||
let argv += g:Pmd_Rulesets
|
||||
|
Loading…
Reference in New Issue
Block a user