From 6f7f87731887203382209455ca9c9e08d3d11317 Mon Sep 17 00:00:00 2001 From: Gaston Tonietti Date: Thu, 9 Jun 2016 13:44:50 +1000 Subject: [PATCH] Use snippet provided by `completed_item` if it's present --- autoload/neosnippet/parser.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoload/neosnippet/parser.vim b/autoload/neosnippet/parser.vim index cf81554..b49cb2d 100644 --- a/autoload/neosnippet/parser.vim +++ b/autoload/neosnippet/parser.vim @@ -301,6 +301,10 @@ endfunction"}}} function! neosnippet#parser#_get_completed_snippet(completed_item, next_text) abort "{{{ let item = a:completed_item + if has_key(item, "snippet") + return item.snippet + endif + " Set abbr let abbr = (item.abbr != '') ? item.abbr : item.word if len(item.menu) > 5