mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-19 15:33:44 +08:00
10 lines
379 B
Plaintext
10 lines
379 B
Plaintext
Execute ( SpaceVim lua api: data.dict ):
|
|
if has('nvim-0.5.0') || get(g:, '_spacevim_use_lua', 0)
|
|
let cmp = SpaceVim#api#import('vim#compatible')
|
|
lua spacevim_dict = require('spacevim.api').import('data.dict')
|
|
AssertEqual cmp.luaeval('spacevim_dict.make({"a" , "b", "h"}, {"c", "d"}, "m")'), {'a' : 'c', 'b' : 'd', 'h' : 'm'}
|
|
else
|
|
Log 'skip lua test'
|
|
endif
|
|
|