mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 09:30:06 +08:00
10 lines
322 B
Plaintext
10 lines
322 B
Plaintext
Execute ( SpaceVim lua api: vim.keys.t(str) ):
|
|
if has('nvim-0.5.0') || has('lua')
|
|
let cmp = SpaceVim#api#import('vim#compatible')
|
|
lua spacevim_keys = require('spacevim.api').import('vim.keys')
|
|
AssertEqual cmp.luaeval('spacevim_keys.t("<Right>")'), "\<Right>"
|
|
else
|
|
Log 'skip lua test'
|
|
endif
|
|
|