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