1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-22 05:03:43 +08:00
SpaceVim/autoload/SpaceVim/layers/games.vim

25 lines
868 B
VimL
Raw Normal View History

"=============================================================================
" games.vim --- SpaceVim games layer
2022-02-03 17:24:51 +08:00
" Copyright (c) 2016-2022 Wang Shidong & Contributors
2022-03-27 13:38:54 +08:00
" Author: Wang Shidong < wsdjeg@outlook.com >
" URL: https://spacevim.org
" License: GPLv3
"=============================================================================
2017-04-27 23:48:08 +08:00
function! SpaceVim#layers#games#plugins() abort
let plugins = []
2017-04-28 23:11:20 +08:00
call add(plugins, ['wsdjeg/vim2048', {'merged' : 0}])
2017-04-27 23:48:08 +08:00
return plugins
endfunction
function! SpaceVim#layers#games#config() abort
let g:_spacevim_mappings_space.g = {'name' : '+Games'}
call SpaceVim#mapping#space#def('nnoremap', ['g', '2'], 'call vim2048#start()', '2048-in-vim', 1)
endfunction
2021-08-10 19:59:42 +08:00
function! SpaceVim#layers#games#health() abort
call SpaceVim#layers#games#plugins()
call SpaceVim#layers#games#config()
return 1
endfunction