mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:50:05 +08:00
10 lines
323 B
Plaintext
10 lines
323 B
Plaintext
Execute ( SpaceVim lua api: logger ):
|
|
if !has('nvim-0.7.2')
|
|
Log 'skip lua test'
|
|
finish
|
|
endif
|
|
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'
|