- Added g:neosnippet#enable_preview option.
This commit is contained in:
parent
876a68afa1
commit
5f69130b33
@ -1,7 +1,7 @@
|
||||
"=============================================================================
|
||||
" FILE: snippets_complete.vim
|
||||
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
|
||||
" Last Modified: 24 Mar 2013.
|
||||
" Last Modified: 30 Mar 2013.
|
||||
" License: MIT license {{{
|
||||
" Permission is hereby granted, free of charge, to any person obtaining
|
||||
" a copy of this software and associated documentation files (the
|
||||
@ -38,6 +38,8 @@ 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,7 +65,9 @@ function! s:source.get_complete_words(cur_keyword_pos, cur_keyword_str) "{{{
|
||||
\ 'neocomplcache__refresh', 0) ? '~' : ''
|
||||
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
|
||||
|
@ -212,6 +212,12 @@ g:neosnippet#enable_snipmate_compatibility
|
||||
|
||||
The default value is 0.
|
||||
|
||||
g:neosnippet#enable_preview *g:neosnippet#enable_preview*
|
||||
If it is non 0, neosnippet will enable preview window
|
||||
feature.
|
||||
|
||||
The default value is 0.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
KEY MAPPINGS *neosnippet-key-mappings*
|
||||
|
||||
@ -752,6 +758,7 @@ CHANGELOG *neosnippet-changelog*
|
||||
|
||||
2013-03-30
|
||||
- Added rst snippets.
|
||||
- Added g:neosnippet#enable_preview option.
|
||||
|
||||
2013-03-24
|
||||
- Improved documentation.
|
||||
|
Loading…
Reference in New Issue
Block a user