mirror of
https://github.com/preservim/vim-thematic.git
synced 2025-11-16 22:03:41 -05:00
customlist support for Thematic command
This commit is contained in:
@@ -41,14 +41,23 @@ if !exists('g:thematic#themes')
|
||||
\ }
|
||||
endif
|
||||
|
||||
function! <SID>chooseTheme(ArgLead, CmdLine, CursorPos)
|
||||
return sort(keys(g:thematic#themes))
|
||||
endfunction
|
||||
|
||||
" Commands
|
||||
|
||||
" Thematic {theme_name}
|
||||
command -nargs=1
|
||||
\ -complete=customlist,<SID>chooseTheme
|
||||
\ Thematic
|
||||
\ call thematic#init(<f-args>)
|
||||
|
||||
command -nargs=0 ThematicFirst call thematic#init('#first')
|
||||
command -nargs=0 ThematicNext call thematic#init('#next')
|
||||
command -nargs=0 ThematicPrevious call thematic#init('#previous')
|
||||
command -nargs=0 ThematicRandom call thematic#init('#random')
|
||||
command -nargs=0 ThematicOriginal call thematic#init('#original')
|
||||
command -nargs=1 Thematic call thematic#init(<f-args>)
|
||||
|
||||
" Plugin mappings
|
||||
|
||||
|
||||
Reference in New Issue
Block a user