aboutsummaryrefslogtreecommitdiff
path: root/autoload/fz/sonictemplate.vim
blob: 193c8409859475437658d4e7d2d887e7a7ee1120 (plain)
1
2
3
4
5
6
7
function! s:handler(item) abort
  call sonictemplate#apply(a:item.items[0], 'n')
endfunction

function! fz#sonictemplate#run() abort
  call fz#run({'type': 'list', 'list': sonictemplate#complete("", "", 0), 'accept': function('s:handler')})
endfunction