1
0
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:
Shull 2021-07-06 20:43:35 +08:00 committed by GitHub
parent a00ca02d89
commit d5020d8195
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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