1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 09:30:04 +08:00
SpaceVim/test/lua/logger.vader

8 lines
304 B
Plaintext
Raw Normal View History

2021-08-14 15:27:12 +08:00
Execute ( SpaceVim lua api: logger ):
2021-08-21 13:21:11 +08:00
if has('nvim') || has('+lua')
let cmp = SpaceVim#api#import('vim#compatible')
lua spacevim_logger = require('spacevim.api').import('logger')
lua spacevim_logger.set_name('TestLog')
AssertEqual cmp.luaeval('spacevim_logger.name'), 'TestLog'
endif