1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:00:04 +08:00

fix(pmd): check executable of Pmd_Cmd

This commit is contained in:
Eric Wong 2024-03-10 22:43:51 +08:00
parent 5de1889197
commit 84cb742b9a

View File

@ -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