1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 12:50:04 +08:00
SpaceVim/test/layer.vader

23 lines
819 B
Plaintext
Raw Normal View History

2021-08-10 19:59:42 +08:00
Execute ( SpaceVim layer health: ):
runtime autoload/SpaceVim.vim
call SpaceVim#mapping#g#init()
call SpaceVim#mapping#z#init()
call SpaceVim#mapping#leader#defindKEYs()
call SpaceVim#mapping#space#init()
2021-08-10 19:59:42 +08:00
for layer in SpaceVim#layers#list()
Log 'testing ' . layer . ' layer'
Assert SpaceVim#layers#{layer}#health(), 'function SpaceVim#layers#' . layer . '#health() return false'
endfor
2021-08-27 11:47:11 +08:00
Execute ( SpaceVim language mapping: ):
for layer in SpaceVim#layers#list()
Log 'testing ' . layer . ' language key bindings'
let LMAPF = SpaceVim#mapping#space#get_lang_mappings(get(split(layer, '#'), 1, ''))
if !empty(LMAPF)
call call(LMAPF, [])
" https://github.com/vim/vim/commit/f6f32c38bf3319144a84a01a154c8c91939e7acf
endif
unlet LMAPF
endfor