Skip to content

Commit

Permalink
Use snippet provided by completed_item if it's present
Browse files Browse the repository at this point in the history
  • Loading branch information
ktonga committed Jun 9, 2016
1 parent b823c2e commit 6f7f877
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions autoload/neosnippet/parser.vim
Expand Up @@ -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
Expand Down

0 comments on commit 6f7f877

Please sign in to comment.