Improve completed snippet behavior
This commit is contained in:
parent
c76a668f40
commit
19dc3db526
@ -31,7 +31,9 @@ function! neosnippet#handlers#_complete_done() "{{{
|
|||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if has_key(neosnippet#helpers#get_snippets(), v:completed_item.word)
|
let snippets = neosnippet#helpers#get_snippets()
|
||||||
|
if has_key(snippets, v:completed_item.word)
|
||||||
|
\ && !get(snippets[v:completed_item.word], 'oneshot', 0)
|
||||||
" Don't overwrite exists snippets
|
" Don't overwrite exists snippets
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user