- Changed neocomplcache source behavior.

This commit is contained in:
Shougo Matsushita 2012-09-30 18:22:30 +09:00
parent 83e20ff749
commit f065035e7f
2 changed files with 9 additions and 2 deletions

View File

@ -29,13 +29,15 @@ set cpo&vim
let s:source = {
\ 'name' : 'snippets_complete',
\ 'kind' : 'plugin',
\ 'kind' : 'complfunc',
\}
function! s:source.initialize()"{{{
" Initialize.
call neocomplcache#set_dictionary_helper(
\ g:neocomplcache_source_rank, 'snippets_complete', 8)
call neocomplcache#set_completion_length('snippets_complete',
\ g:neocomplcache_auto_completion_start_length)
endfunction"}}}
function! s:source.finalize()"{{{
@ -50,7 +52,11 @@ function! s:source.finalize()"{{{
endif
endfunction"}}}
function! s:source.get_keyword_list(cur_keyword_str)"{{{
function! s:source.get_keyword_pos(cur_text)"{{{
return match(a:cur_text, '\S\+$')
endfunction"}}}
function! s:source.get_complete_words(cur_keyword_pos, cur_keyword_str)"{{{
let all_snippets = neosnippet#get_snippets()
for filetype in neocomplcache#get_source_filetypes(

View File

@ -368,6 +368,7 @@ CHANGELOG *neosnippet-changelog*
- Improved for filetype.
- Improved filetype complete.
- Improved documentation.
- Changed neocomplcache source behavior.
2012-09-27
- Ver.3 development is started.