mirror of
https://github.com/preservim/vim-thematic.git
synced 2025-11-10 10:53:50 -05:00
filter completion against ArgLead
This commit is contained in:
@@ -47,7 +47,8 @@ if !exists('g:thematic#themes')
|
||||
endif
|
||||
|
||||
function! <SID>chooseTheme(ArgLead, CmdLine, CursorPos)
|
||||
return sort(keys(g:thematic#themes))
|
||||
return filter(sort(keys(g:thematic#themes)),
|
||||
\ "stridx(v:val,'".a:ArgLead."') == 0")
|
||||
endfunction
|
||||
|
||||
" Commands
|
||||
|
||||
Reference in New Issue
Block a user