customlist support for Thematic command

This commit is contained in:
Reed Esau
2013-12-30 22:13:40 -07:00
parent f6a8a296bb
commit 49638180d4

View File

@@ -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