- Added neocomplcache#sources#snippets_complete#force_expandable() and
neocomplcache#sources#snippets_complete#jumpable().
This commit is contained in:
parent
a9aaca8582
commit
7ab14b958c
@ -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)
|
||||
|
||||
|
@ -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()*
|
||||
|
Loading…
Reference in New Issue
Block a user