Improve menu

This commit is contained in:
Shougo Matsushita 2015-10-03 10:35:58 +09:00
parent bab27f8a95
commit 7c07c4d8a2
2 changed files with 2 additions and 3 deletions

View File

@ -29,6 +29,7 @@ set cpo&vim
let s:source = {
\ 'name' : 'neosnippet',
\ 'kind' : 'keyword',
\ 'mark' : '[nsnip]',
\ 'rank' : 8,
\ 'hooks' : {},
\ 'matchers' :

View File

@ -223,8 +223,6 @@ function! neosnippet#parser#_initialize_snippet(dict, path, line, pattern, name)
let a:dict.word .= '${0}'
endif
let menu_prefix = '[nsnip] '
if !has_key(a:dict, 'abbr') || a:dict.abbr == ''
" Set default abbr.
let abbr = substitute(a:dict.word,
@ -239,7 +237,7 @@ function! neosnippet#parser#_initialize_snippet(dict, path, line, pattern, name)
let snippet = {
\ 'word' : a:dict.name, 'snip' : a:dict.word,
\ 'description' : a:dict.word,
\ 'menu_template' : menu_prefix . abbr,
\ 'menu_template' : abbr,
\ 'menu_abbr' : abbr,
\ 'options' : a:dict.options,
\ 'action__path' : a:path, 'action__line' : a:line,