1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-09 11:50:05 +08:00
SpaceVim/test/lua/layer/lang/java.vader

9 lines
379 B
Plaintext
Raw Normal View History

2022-06-18 22:57:23 +08:00
Execute ( SpaceVim lua layer: lang#java ):
if has('nvim-0.5.0') || has('+lua')
2022-09-10 20:40:08 +08:00
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
2022-06-18 22:57:23 +08:00
AssertEqual cmp.luaeval('format_on_save'), v:false
endif