Remove g:neosnippet#enable_preview

This commit is contained in:
Shougo Matsushita
2015-06-04 07:35:36 +09:00
parent e2c830db87
commit 7c1d60f499
3 changed files with 0 additions and 20 deletions

View File

@@ -36,12 +36,6 @@ let s:source = {
\ ['matcher_fuzzy'] : ['matcher_head']),
\}
function! s:source.hooks.on_init(context) "{{{
" Initialize.
call neosnippet#util#set_default(
\ 'g:neosnippet#enable_preview', 0)
endfunction"}}}
function! s:source.gather_candidates(context) "{{{
let snippets = values(neosnippet#helpers#get_snippets())
if matchstr(a:context.input, '\S\+$') !=#
@@ -57,9 +51,6 @@ function! s:source.hooks.on_post_filter(context) "{{{
let snippet.dup = 1
let snippet.menu = neosnippet#util#strwidthpart(
\ snippet.menu_template, winwidth(0)/3)
if g:neosnippet#enable_preview
let snippet.info = snippet.snip
endif
endfor
return a:context.candidates