Fix #418 user_data support
This commit is contained in:
parent
ef8729c7cc
commit
f514e3be28
@ -163,7 +163,7 @@ function! s:get_completed_snippets(cur_text, col) abort
|
|||||||
|
|
||||||
let cur_text = a:cur_text
|
let cur_text = a:cur_text
|
||||||
|
|
||||||
if !empty(get(v:completed_item, 'user_data', '{}'))
|
if get(v:completed_item, 'user_data', '') !=# ''
|
||||||
let user_data = json_decode(v:completed_item.user_data)
|
let user_data = json_decode(v:completed_item.user_data)
|
||||||
if has_key(user_data, 'snippet')
|
if has_key(user_data, 'snippet')
|
||||||
let snippet = user_data.snippet
|
let snippet = user_data.snippet
|
||||||
|
Loading…
Reference in New Issue
Block a user