if opt.lspOptions.ultisnipsSupport
call UltiSnips#SnippetsInCurrentScope(1)
- for [key, info] in items(g:current_ulti_dict_info)
- if matchfuzzy([key], prefix)->empty()
- continue
- endif
- var parts = split(info.location, ':')
+ for key in matchfuzzy(g:current_ulti_dict_info->keys(), prefix)
+ var item = g:current_ulti_dict_info[key]
+ var parts = split(item.location, ':')
var txt = readfile(parts[0])[str2nr(parts[1]) : str2nr(parts[1]) + 20]
- var restxt = info.description .. "\n\n"
+ var restxt = item.description .. "\n\n"
for line in txt
if line == ""
break
restxt = restxt .. line .. "\n"
endif
endfor
- #echom restxt
items->add({
label: key,
data: {