Delete echodoc support.

This commit is contained in:
Shougo Matsushita 2013-11-21 18:41:17 +09:00
parent 212609b1e3
commit e295f190dc
1 changed files with 0 additions and 32 deletions

View File

@ -108,10 +108,6 @@ function! s:initialize_others() "{{{
hi def link neosnippetExpandSnippets Special
if get(g:, 'loaded_echodoc', 0)
call echodoc#register('snippets_complete', s:doc_dict)
endif
call neosnippet#mappings#_clear_select_mode_mappings()
if g:neosnippet#enable_snipmate_compatibility "{{{
@ -175,34 +171,6 @@ function! s:on_insert_leave() "{{{
endtry
endfunction"}}}
" For echodoc. "{{{
let s:doc_dict = {
\ 'name' : 'neosnippet',
\ 'rank' : 100,
\ 'filetypes' : {},
\ }
function! s:doc_dict.search(cur_text) "{{{
if mode() !=# 'i'
return []
endif
let snippets = neosnippet#helpers#get_snippets()
let cur_word = neosnippet#helpers#get_cursor_snippet(snippets, a:cur_text)
if cur_word == ''
return []
endif
let snip = snippets[cur_word]
let ret = []
call add(ret, { 'text' : snip.word, 'highlight' : 'String' })
call add(ret, { 'text' : ' ' })
call add(ret, { 'text' : snip.menu_abbr, 'highlight' : 'Special' })
return ret
endfunction"}}}
"}}}
let &cpo = s:save_cpo
unlet s:save_cpo