aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autoload/fz/sonictemplate.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/autoload/fz/sonictemplate.vim b/autoload/fz/sonictemplate.vim
new file mode 100644
index 0000000..193c840
--- /dev/null
+++ b/autoload/fz/sonictemplate.vim
@@ -0,0 +1,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