vimPlugins.markdown-preview-nvim: remove executable check
This commit is contained in:
parent
2d1cfc5882
commit
98ca06bd04
@ -8,7 +8,7 @@ index 9eebb56..0700333 100644
|
||||
call health#report_ok('Using pre build')
|
||||
- elseif executable('node')
|
||||
- call health#report_info('Node version: ' . system('node --version'))
|
||||
+ elseif executable('@node@')
|
||||
+ else
|
||||
+ call health#report_info('Node version: ' . system('@node@ --version'))
|
||||
let l:mkdp_server_script = s:mkdp_root_dir . '/app/server.js'
|
||||
call health#report_info('Script: ' . l:mkdp_server_script)
|
||||
@ -23,7 +23,7 @@ index 5abd807..db1067b 100644
|
||||
let l:cmd = [l:pre_build, '--path', s:script]
|
||||
- elseif executable('node')
|
||||
- let l:cmd = ['node', s:root_dir . '/app/index.js', '--path', s:script]
|
||||
+ elseif executable('@node@')
|
||||
+ else
|
||||
+ let l:cmd = ['@node@', s:root_dir . '/app/index.js', '--path', s:script]
|
||||
endif
|
||||
if !exists('l:cmd')
|
||||
@ -37,7 +37,7 @@ index a3361ec..d42f7a6 100644
|
||||
if executable(l:mkdp_server_script)
|
||||
let l:cmd = [l:mkdp_server_script, '--path', s:mkdp_root_dir . '/app/server.js']
|
||||
- elseif executable('node')
|
||||
+ elseif executable('@node@')
|
||||
+ else
|
||||
let l:mkdp_server_script = s:mkdp_root_dir . '/app/index.js'
|
||||
- let l:cmd = ['node', l:mkdp_server_script, '--path', s:mkdp_root_dir . '/app/server.js']
|
||||
+ let l:cmd = ['@node@', l:mkdp_server_script, '--path', s:mkdp_root_dir . '/app/server.js']
|
||||
|
Loading…
Reference in New Issue
Block a user