mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 06:40:05 +08:00
9 lines
321 B
Plaintext
9 lines
321 B
Plaintext
Execute ( SpaceVim lua api: data.list ):
|
|
if get(g:, 'spacevim_use_lua', 0)
|
|
let cmp = SpaceVim#api#import('vim#compatible')
|
|
lua spacevim_list = require('spacevim.api').import('data.list')
|
|
lua context = {"java", "hello world"}
|
|
AssertEqual cmp.luaeval('spacevim_list.pop(context)'), 'hello world'
|
|
endif
|
|
|