mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-24 10:47:07 +08:00
style(viml): format code
This commit is contained in:
parent
372e8e3026
commit
3d578c3377
@ -508,71 +508,62 @@ 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',
|
||||||
\ {
|
\ 'desc' : 'left',
|
||||||
\ 'key' : 'H',
|
\ 'func' : '',
|
||||||
\ 'desc' : 'left',
|
\ 'cmd' : 'wincmd h',
|
||||||
\ 'func' : '',
|
\ 'exit' : 0,
|
||||||
\ 'cmd' : 'wincmd h',
|
\ },{
|
||||||
\ 'exit' : 0,
|
\ 'key' : 'J',
|
||||||
\ },
|
\ 'desc' : 'below',
|
||||||
\ {
|
\ 'func' : '',
|
||||||
\ 'key' : 'J',
|
\ 'cmd' : 'wincmd j',
|
||||||
\ 'desc' : 'below',
|
\ 'exit' : 0,
|
||||||
\ 'func' : '',
|
\ },{
|
||||||
\ 'cmd' : 'wincmd j',
|
\ 'key' : 'K',
|
||||||
\ 'exit' : 0,
|
\ 'desc' : 'up',
|
||||||
\ },
|
\ 'func' : '',
|
||||||
\ {
|
\ 'cmd' : 'wincmd k',
|
||||||
\ 'key' : 'K',
|
\ 'exit' : 0,
|
||||||
\ 'desc' : 'up',
|
\ },{
|
||||||
\ 'func' : '',
|
\ 'key' : 'L',
|
||||||
\ 'cmd' : 'wincmd k',
|
\ 'desc' : 'right',
|
||||||
\ 'exit' : 0,
|
\ 'func' : '',
|
||||||
\ },
|
\ 'cmd' : 'wincmd l',
|
||||||
\ {
|
\ 'exit' : 0,
|
||||||
\ 'key' : 'L',
|
\ },
|
||||||
\ 'desc' : 'right',
|
\ ],
|
||||||
\ 'func' : '',
|
\ 'right' : [{
|
||||||
\ 'cmd' : 'wincmd l',
|
\ 'key' : 'h',
|
||||||
\ 'exit' : 0,
|
\ 'desc' : 'decrease width',
|
||||||
\ },
|
\ 'func' : '',
|
||||||
\ ],
|
\ 'cmd' : 'vertical resize -1',
|
||||||
\ 'right' : [
|
\ 'exit' : 0,
|
||||||
\ {
|
\ },{
|
||||||
\ 'key' : 'h',
|
\ 'key' : 'l',
|
||||||
\ 'desc' : 'decrease width',
|
\ 'desc' : 'increase width',
|
||||||
\ 'func' : '',
|
\ 'func' : '',
|
||||||
\ 'cmd' : 'vertical resize -1',
|
\ 'cmd' : 'vertical resize +1',
|
||||||
\ 'exit' : 0,
|
\ 'exit' : 0,
|
||||||
\ },
|
\ },{
|
||||||
\ {
|
\ 'key' : 'j',
|
||||||
\ 'key' : 'l',
|
\ 'desc' : 'decrease height',
|
||||||
\ 'desc' : 'increase width',
|
\ 'func' : '',
|
||||||
\ 'func' : '',
|
\ 'cmd' : 'resize -1',
|
||||||
\ 'cmd' : 'vertical resize +1',
|
\ 'exit' : 0,
|
||||||
\ 'exit' : 0,
|
\ },{
|
||||||
\ },
|
\ 'key' : 'k',
|
||||||
\ {
|
\ 'desc' : 'increase height',
|
||||||
\ 'key' : 'j',
|
\ 'func' : '',
|
||||||
\ 'desc' : 'decrease height',
|
\ 'cmd' : 'resize +1',
|
||||||
\ 'func' : '',
|
\ 'exit' : 0,
|
||||||
\ 'cmd' : 'resize -1',
|
\ },
|
||||||
\ 'exit' : 0,
|
\ ],
|
||||||
\ },
|
\ }
|
||||||
\ {
|
\ )
|
||||||
\ 'key' : 'k',
|
|
||||||
\ 'desc' : 'increase height',
|
|
||||||
\ 'func' : '',
|
|
||||||
\ 'cmd' : 'resize +1',
|
|
||||||
\ 'exit' : 0,
|
|
||||||
\ },
|
|
||||||
\ ],
|
|
||||||
\ }
|
|
||||||
\ )
|
|
||||||
call state.open()
|
call state.open()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
@ -648,32 +639,28 @@ 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' : '+',
|
||||||
\ {
|
\ 'desc' : 'increase the font',
|
||||||
\ 'key' : '+',
|
\ 'func' : '',
|
||||||
\ 'desc' : 'increase the font',
|
\ 'exit' : 0,
|
||||||
\ 'func' : '',
|
\ 'cmd' : 'call call(' . string(s:_function('s:increase_font')) . ', [])',
|
||||||
\ 'exit' : 0,
|
\ },{
|
||||||
\ 'cmd' : 'call call(' . string(s:_function('s:increase_font')) . ', [])',
|
\ 'key' : '0',
|
||||||
\ },
|
\ 'desc' : 'reset the font size',
|
||||||
\ {
|
\ 'func' : '',
|
||||||
\ 'key' : '0',
|
\ 'exit' : 0,
|
||||||
\ 'desc' : 'reset the font size',
|
\ 'cmd' : 'call call(' . string(s:_function('s:reset_font_size')) . ', [])',
|
||||||
\ 'func' : '',
|
|
||||||
\ 'exit' : 0,
|
|
||||||
\ 'cmd' : 'call call(' . string(s:_function('s:reset_font_size')) . ', [])',
|
|
||||||
\ },
|
\ },
|
||||||
\ ],
|
\ ],
|
||||||
\ 'right' : [
|
\ 'right' : [{
|
||||||
\ {
|
\ 'key' : '-',
|
||||||
\ 'key' : '-',
|
\ 'desc' : 'reduce the font',
|
||||||
\ 'desc' : 'reduce the font',
|
\ 'func' : '',
|
||||||
\ 'func' : '',
|
\ 'exit' : 0,
|
||||||
\ 'exit' : 0,
|
\ 'cmd' : 'call call(' . string(s:_function('s:reduce_font')) . ', [])',
|
||||||
\ 'cmd' : 'call call(' . string(s:_function('s:reduce_font')) . ', [])',
|
|
||||||
\ },
|
\ },
|
||||||
\ ],
|
\ ],
|
||||||
\ }
|
\ }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user