diff --git a/autoload/SpaceVim/layers/xmake.vim b/autoload/SpaceVim/layers/xmake.vim index 0c2b14be0..dd790a1ad 100644 --- a/autoload/SpaceVim/layers/xmake.vim +++ b/autoload/SpaceVim/layers/xmake.vim @@ -23,9 +23,15 @@ function! SpaceVim#layers#xmake#plugins() abort return plugins endfunction -function! SpaceVim#layers#cscope#config() abort +function! SpaceVim#layers#xmake#config() abort call add(g:spacevim_project_rooter_patterns, 'xmake.lua') let g:_spacevim_mappings_space.m.x = {'name' : '+xmake'} call SpaceVim#mapping#space#def('nnoremap', ['m', 'x', 'b'], 'call xmake#buildrun()', 'xmake-build-without-running', 1) call SpaceVim#mapping#space#def('nnoremap', ['m', 'x', 'r'], 'call xmake#buildrun(1)', 'xmake-build-amd-running', 1) endfunction + +function! SpaceVim#layers#xmake#health() abort + call SpaceVim#layers#xmake#plugins() + call SpaceVim#layers#xmake#config() + return 1 +endfunction