mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 06:33:42 +00:00
32 lines
1.5 KiB
Diff
32 lines
1.5 KiB
Diff
diff --git a/autoload/health/mkdp.vim b/autoload/health/mkdp.vim
|
|
index 9eebb56..3a0b069 100644
|
|
--- a/autoload/health/mkdp.vim
|
|
+++ b/autoload/health/mkdp.vim
|
|
@@ -9,8 +9,8 @@ function! health#mkdp#check() abort
|
|
call health#report_info('Pre build: ' . l:mkdp_server_script)
|
|
call health#report_info('Pre build version: ' . mkdp#util#pre_build_version())
|
|
call health#report_ok('Using pre build')
|
|
- elseif executable('node')
|
|
- call health#report_info('Node version: ' . system('node --version'))
|
|
+ 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)
|
|
call health#report_info('Script exists: ' . filereadable(l:mkdp_server_script))
|
|
diff --git a/autoload/mkdp/rpc.vim b/autoload/mkdp/rpc.vim
|
|
index b257571..57f04e7 100644
|
|
--- a/autoload/mkdp/rpc.vim
|
|
+++ b/autoload/mkdp/rpc.vim
|
|
@@ -41,9 +41,9 @@ function! mkdp#rpc#start_server() abort
|
|
let l:mkdp_server_script = s:mkdp_root_dir . '/app/bin/markdown-preview-' . mkdp#util#get_platform()
|
|
if executable(l:mkdp_server_script)
|
|
let l:cmd = [l:mkdp_server_script, '--path', s:mkdp_root_dir . '/app/server.js']
|
|
- 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']
|
|
endif
|
|
if exists('l:cmd')
|
|
if s:is_vim
|