mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-14 06:58:00 +08:00
9 lines
323 B
Plaintext
9 lines
323 B
Plaintext
Execute ( SpaceVim lua api: data.list ):
|
|
if has('nvim-0.5.0') || has('+lua')
|
|
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
|
|
|