1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 01:50:05 +08:00
SpaceVim/test/lua/layer/lang/java.vader
2024-03-22 20:15:00 +08:00

10 lines
392 B
Plaintext

Execute ( SpaceVim lua layer: lang#java ):
if !has('nvim-0.7.2')
Log 'skip lua test'
finish
endif
let cmp = SpaceVim#api#import('vim#compatible')
lua require('spacevim.layer.lang.java').set_variable({format_on_save = false})
lua format_on_save = require('spacevim.layer.lang.java').get_variable().format_on_save
AssertEqual cmp.luaeval('format_on_save'), v:false