ListUltisnips updated

This commit is contained in:
ManjaroOne666 2018-06-17 16:27:53 +01:00
parent 38df1a05ef
commit 630063fcd6
1 changed files with 3 additions and 1 deletions

View File

@ -356,9 +356,11 @@ let g:UltiSnipsEditSplit='horizontal'
function! ListUltisnips() abort function! ListUltisnips() abort
let l:snips = UltiSnips#SnippetsInCurrentScope(1) let l:snips = UltiSnips#SnippetsInCurrentScope(1)
let l:keylist = sort(keys(l:snips)) let l:keylist = sort(keys(l:snips))
echo ' --------------------------------------------------'
for l:key in l:keylist for l:key in l:keylist
echo l:key . "\t" . l:snips[l:key] echo printf(" %-10s\t%s", l:key, l:snips[l:key])
endfor endfor
echo '---------------------------------------------------'
" for [l:key, l:info] in items(l:snips) " for [l:key, l:info] in items(l:snips)
" echo l:key . "\t" . l:info " echo l:key . "\t" . l:info
" endfor " endfor