1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-14 01:57:58 +08:00
SpaceVim/test/lua/api/vim/keys.vader

9 lines
305 B
Plaintext
Raw Normal View History

2022-07-10 20:51:19 +08:00
Execute ( SpaceVim lua api: vim.keys.t(str) ):
2024-03-22 20:15:00 +08:00
if !has('nvim-0.7.2')
2022-07-10 20:51:19 +08:00
Log 'skip lua test'
2024-03-22 20:15:00 +08:00
finish
2022-07-10 20:51:19 +08:00
endif
2024-03-22 20:15:00 +08:00
let cmp = SpaceVim#api#import('vim#compatible')
lua spacevim_keys = require('spacevim.api').import('vim.keys')
AssertEqual cmp.luaeval('spacevim_keys.t("<Right>")'), "\<Right>"