- Added neocomplcache#sources#snippets_complete#force_expandable() and

neocomplcache#sources#snippets_complete#jumpable().
This commit is contained in:
Shougo Matsushita 2012-03-03 16:35:48 +09:00
parent a9aaca8582
commit 7ab14b958c
2 changed files with 4 additions and 3 deletions

View File

@ -234,7 +234,7 @@ endfunction"}}}
function! neocomplcache#sources#snippets_complete#expandable()"{{{
let ret = 0
if neocomplcache#sources#snippets_complete#expandable_trigger()
if neocomplcache#sources#snippets_complete#force_expandable()
let ret += 1
endif
@ -244,7 +244,7 @@ function! neocomplcache#sources#snippets_complete#expandable()"{{{
return ret
endfunction"}}}
function! neocomplcache#sources#snippets_complete#expandable_trigger()"{{{
function! neocomplcache#sources#snippets_complete#force_expandable()"{{{
let snippets = neocomplcache#sources#snippets_complete#get_snippets()
let cur_text = neocomplcache#get_cur_text(1)

View File

@ -143,7 +143,8 @@ neocomplcache#sources#snippets_complete#expandable()
2 : exists placeholder in current buffer
3 : both found.
>
imap <expr><C-l> neocomplcache#snippets_complete#expandable() ? "\<Plug>(neocomplcache_snippets_expand)" : "\<C-n>"
imap <expr><C-l> neocomplcache#snippets_complete#expandable() ?
\ "\<Plug>(neocomplcache_snippets_expand)" : "\<C-n>"
<
neocomplcache#sources#snippets_complete#force_expandable()
*neocomplcache#sources#snippets_complete#force_expandable()*