Remove g:neosnippet#enable_preview
This commit is contained in:
parent
e2c830db87
commit
7c1d60f499
@ -39,8 +39,6 @@ function! s:source.initialize() "{{{
|
||||
\ g:neocomplcache_source_rank, 'snippets_complete', 8)
|
||||
call neocomplcache#set_completion_length('snippets_complete',
|
||||
\ g:neocomplcache_auto_completion_start_length)
|
||||
call neosnippet#util#set_default(
|
||||
\ 'g:neosnippet#enable_preview', 0)
|
||||
endfunction"}}}
|
||||
|
||||
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(
|
||||
\ snippet.menu_template, winwidth(0)/3)
|
||||
if g:neosnippet#enable_preview
|
||||
let snippet.info = snippet.snip
|
||||
endif
|
||||
endfor
|
||||
|
||||
return list
|
||||
|
@ -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
|
||||
|
@ -202,12 +202,6 @@ g:neosnippet#enable_snipmate_compatibility
|
||||
load |g:snippets_dir| and snipMate snippets automatically from
|
||||
'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.
|
||||
|
||||
*g:neosnippet#expand_word_boundary*
|
||||
|
Loading…
Reference in New Issue
Block a user