diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2020-02-12 19:03:04 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2020-02-12 19:03:04 +0900 |
commit | f2653fe204d8dd3b10576489d9a22070f694b789 (patch) | |
tree | 61693f68d57706d8f0700d8ba60328b32e509f65 /autoload | |
parent | c509d37b42a098bec86e6cd91d220ccaaf3202cf (diff) | |
download | vim-sonictemplate-f2653fe204d8dd3b10576489d9a22070f694b789.tar.gz vim-sonictemplate-f2653fe204d8dd3b10576489d9a22070f694b789.tar.bz2 vim-sonictemplate-f2653fe204d8dd3b10576489d9a22070f694b789.zip |
Add fz source
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/fz/sonictemplate.vim | 7 |
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 |