1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 12:50:04 +08:00

test(logger): test lua logger only for nvim-0.5.0

This commit is contained in:
wsdjeg 2022-01-04 23:02:03 +08:00
parent bb209b9e28
commit 129d538c3b

View File

@ -1,5 +1,5 @@
Execute ( SpaceVim lua api: logger ): Execute ( SpaceVim lua api: logger ):
if has('nvim') || has('+lua') if has('nvim-0.5.0') || has('+lua')
let cmp = SpaceVim#api#import('vim#compatible') let cmp = SpaceVim#api#import('vim#compatible')
lua spacevim_logger = require('spacevim.api').import('logger') lua spacevim_logger = require('spacevim.api').import('logger')
lua spacevim_logger.set_name('TestLog') lua spacevim_logger.set_name('TestLog')