1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-23 01:09:56 +08:00

style(viml): format code

This commit is contained in:
wsdjeg 2022-05-29 13:42:36 +08:00
parent 372e8e3026
commit 3d578c3377

View File

@ -508,32 +508,27 @@ endfunction
function! s:win_resize_transient_state() abort function! s:win_resize_transient_state() abort
let state = SpaceVim#api#import('transient_state') let state = SpaceVim#api#import('transient_state')
call state.set_title('Windows Resize Transient State') call state.set_title('Windows Resize Transient State')
call state.defind_keys( call state.defind_keys({
\ {
\ 'layout' : 'vertical split', \ 'layout' : 'vertical split',
\ 'left' : [ \ 'left' : [{
\ {
\ 'key' : 'H', \ 'key' : 'H',
\ 'desc' : 'left', \ 'desc' : 'left',
\ 'func' : '', \ 'func' : '',
\ 'cmd' : 'wincmd h', \ 'cmd' : 'wincmd h',
\ 'exit' : 0, \ 'exit' : 0,
\ }, \ },{
\ {
\ 'key' : 'J', \ 'key' : 'J',
\ 'desc' : 'below', \ 'desc' : 'below',
\ 'func' : '', \ 'func' : '',
\ 'cmd' : 'wincmd j', \ 'cmd' : 'wincmd j',
\ 'exit' : 0, \ 'exit' : 0,
\ }, \ },{
\ {
\ 'key' : 'K', \ 'key' : 'K',
\ 'desc' : 'up', \ 'desc' : 'up',
\ 'func' : '', \ 'func' : '',
\ 'cmd' : 'wincmd k', \ 'cmd' : 'wincmd k',
\ 'exit' : 0, \ 'exit' : 0,
\ }, \ },{
\ {
\ 'key' : 'L', \ 'key' : 'L',
\ 'desc' : 'right', \ 'desc' : 'right',
\ 'func' : '', \ 'func' : '',
@ -541,29 +536,25 @@ function! s:win_resize_transient_state() abort
\ 'exit' : 0, \ 'exit' : 0,
\ }, \ },
\ ], \ ],
\ 'right' : [ \ 'right' : [{
\ {
\ 'key' : 'h', \ 'key' : 'h',
\ 'desc' : 'decrease width', \ 'desc' : 'decrease width',
\ 'func' : '', \ 'func' : '',
\ 'cmd' : 'vertical resize -1', \ 'cmd' : 'vertical resize -1',
\ 'exit' : 0, \ 'exit' : 0,
\ }, \ },{
\ {
\ 'key' : 'l', \ 'key' : 'l',
\ 'desc' : 'increase width', \ 'desc' : 'increase width',
\ 'func' : '', \ 'func' : '',
\ 'cmd' : 'vertical resize +1', \ 'cmd' : 'vertical resize +1',
\ 'exit' : 0, \ 'exit' : 0,
\ }, \ },{
\ {
\ 'key' : 'j', \ 'key' : 'j',
\ 'desc' : 'decrease height', \ 'desc' : 'decrease height',
\ 'func' : '', \ 'func' : '',
\ 'cmd' : 'resize -1', \ 'cmd' : 'resize -1',
\ 'exit' : 0, \ 'exit' : 0,
\ }, \ },{
\ {
\ 'key' : 'k', \ 'key' : 'k',
\ 'desc' : 'increase height', \ 'desc' : 'increase height',
\ 'func' : '', \ 'func' : '',
@ -648,18 +639,15 @@ function! s:fonts_transient_state() abort
endif endif
let state = SpaceVim#api#import('transient_state') let state = SpaceVim#api#import('transient_state')
call state.set_title('Fonts Transient State') call state.set_title('Fonts Transient State')
call state.defind_keys( call state.defind_keys({
\ {
\ 'layout' : 'vertical split', \ 'layout' : 'vertical split',
\ 'left' : [ \ 'left' : [{
\ {
\ 'key' : '+', \ 'key' : '+',
\ 'desc' : 'increase the font', \ 'desc' : 'increase the font',
\ 'func' : '', \ 'func' : '',
\ 'exit' : 0, \ 'exit' : 0,
\ 'cmd' : 'call call(' . string(s:_function('s:increase_font')) . ', [])', \ 'cmd' : 'call call(' . string(s:_function('s:increase_font')) . ', [])',
\ }, \ },{
\ {
\ 'key' : '0', \ 'key' : '0',
\ 'desc' : 'reset the font size', \ 'desc' : 'reset the font size',
\ 'func' : '', \ 'func' : '',
@ -667,8 +655,7 @@ function! s:fonts_transient_state() abort
\ 'cmd' : 'call call(' . string(s:_function('s:reset_font_size')) . ', [])', \ 'cmd' : 'call call(' . string(s:_function('s:reset_font_size')) . ', [])',
\ }, \ },
\ ], \ ],
\ 'right' : [ \ 'right' : [{
\ {
\ 'key' : '-', \ 'key' : '-',
\ 'desc' : 'reduce the font', \ 'desc' : 'reduce the font',
\ 'func' : '', \ 'func' : '',