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

@ -39,8 +39,6 @@ function! s:source.initialize() "{{{
\ g:neocomplcache_source_rank, 'snippets_complete', 8) \ g:neocomplcache_source_rank, 'snippets_complete', 8)
call neocomplcache#set_completion_length('snippets_complete', call neocomplcache#set_completion_length('snippets_complete',
\ g:neocomplcache_auto_completion_start_length) \ g:neocomplcache_auto_completion_start_length)
call neosnippet#util#set_default(
\ 'g:neosnippet#enable_preview', 0)
endfunction"}}} endfunction"}}}
function! s:source.get_keyword_pos(cur_text) "{{{ function! s:source.get_keyword_pos(cur_text) "{{{
@ -63,9 +61,6 @@ function! s:source.get_complete_words(cur_keyword_pos, cur_keyword_str) "{{{
let snippet.menu = neosnippet#util#strwidthpart( let snippet.menu = neosnippet#util#strwidthpart(
\ snippet.menu_template, winwidth(0)/3) \ snippet.menu_template, winwidth(0)/3)
if g:neosnippet#enable_preview
let snippet.info = snippet.snip
endif
endfor endfor
return list return list

View File

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

View File

@ -202,12 +202,6 @@ g:neosnippet#enable_snipmate_compatibility
load |g:snippets_dir| and snipMate snippets automatically from load |g:snippets_dir| and snipMate snippets automatically from
'runtimepath'. 'runtimepath'.
The default value is 0.
g:neosnippet#enable_preview *g:neosnippet#enable_preview*
If this variable is not 0, neosnippet will enable the preview
window feature in neocomplcache/neocomplete sources.
The default value is 0. The default value is 0.
*g:neosnippet#expand_word_boundary* *g:neosnippet#expand_word_boundary*