mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 17:40:06 +08:00
16 lines
452 B
Plaintext
16 lines
452 B
Plaintext
Execute (Test cmdlinemenu api):
|
|
let g:menu = SpaceVim#api#import('cmdlinemenu')
|
|
let g:cmdlinemenu_rst = ''
|
|
function! s:dark_mode() abort
|
|
let g:cmdlinemenu_rst = 'dark mode'
|
|
endfunction
|
|
|
|
function! s:basic_mode() abort
|
|
let g:cmdlinemenu_rst = 'basic mode'
|
|
endfunction
|
|
|
|
let g:ques = [
|
|
\ ['dark powered mode', function('s:dark_mode')],
|
|
\ ['basic mode', function('s:basic_mode')],
|
|
\ ]
|