1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-22 17:05:42 +08:00

style(core): format vim script dictionary

This commit is contained in:
Shidong Wang 2021-11-13 15:32:08 +08:00
parent 8be152b48b
commit a84aa78836
No known key found for this signature in database
GPG Key ID: 41BB7053E835C848

View File

@ -429,28 +429,23 @@ function! s:number_transient_state(n) abort
let state = SpaceVim#api#import('transient_state') let state = SpaceVim#api#import('transient_state')
call state.set_title('Number Transient State') call state.set_title('Number Transient State')
call state.defind_keys( call state.defind_keys(
\ { \ {'layout' : 'vertical split',
\ 'layout' : 'vertical split', \ 'left' : [{'key' : ['+','='],
\ 'left' : [ \ 'desc' : 'increase number',
\ { \ 'func' : '',
\ 'key' : ['+','='], \ 'cmd' : "normal! \<c-a>",
\ 'desc' : 'increase number', \ 'exit' : 0,
\ 'func' : '', \ },
\ 'cmd' : "normal! \<c-a>", \ ],
\ 'exit' : 0, \ 'right' : [{'key' : '-',
\ }, \ 'desc' : 'decrease number',
\ ], \ 'func' : '',
\ 'right' : [ \ 'cmd' : "normal! \<c-x>",
\ { \ 'exit' : 0,
\ 'key' : '-', \ },
\ 'desc' : 'decrease number', \ ],
\ 'func' : '', \ }
\ 'cmd' : "normal! \<c-x>", \ )
\ 'exit' : 0,
\ },
\ ],
\ }
\ )
call state.open() call state.open()
endfunction endfunction