Improve menu
This commit is contained in:
parent
bab27f8a95
commit
7c07c4d8a2
@ -29,6 +29,7 @@ set cpo&vim
|
||||
let s:source = {
|
||||
\ 'name' : 'neosnippet',
|
||||
\ 'kind' : 'keyword',
|
||||
\ 'mark' : '[nsnip]',
|
||||
\ 'rank' : 8,
|
||||
\ 'hooks' : {},
|
||||
\ 'matchers' :
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user