1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:00:04 +08:00

fix(xmake): fix xmake function name

This commit is contained in:
wsdjeg 2023-03-28 12:28:20 +08:00
parent d6dd0a1111
commit 73cf51975b

View File

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