Use snippet provided by completed_item if it's present

This commit is contained in:
Gaston Tonietti 2016-06-09 13:44:50 +10:00
parent b823c2e639
commit 6f7f877318

View File

@ -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