mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-04-14 15:19:12 +08:00
Fix layer lang::markdown install (#4327)
Co-authored-by: xushaodong <xushaodong@bytedance.com>
This commit is contained in:
parent
a00ca02d89
commit
d5020d8195
@ -52,10 +52,10 @@ function! SpaceVim#layers#lang#markdown#plugins() abort
|
||||
call add(plugins, ['iamcco/mathjax-support-for-mkdp',{ 'on_ft' : 'markdown'}])
|
||||
call add(plugins, ['lvht/tagbar-markdown',{'merged' : 0}])
|
||||
" check node package managers to ensure building of 2 plugins below
|
||||
if executable('npm')
|
||||
let s:node_pkgm = 'npm'
|
||||
elseif executable('yarn')
|
||||
if executable('yarn')
|
||||
let s:node_pkgm = 'yarn'
|
||||
elseif executable('npm')
|
||||
let s:node_pkgm = 'npm'
|
||||
else
|
||||
let s:node_pkgm = ''
|
||||
call SpaceVim#logger#error('npm or yarn is required to build iamcco/markdown-preview and neoclide/vim-node-rpc')
|
||||
|
Loading…
x
Reference in New Issue
Block a user