From c509d37b42a098bec86e6cd91d220ccaaf3202cf Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Wed, 12 Feb 2020 18:56:18 +0900 Subject: Add fzf source --- autoload/fzf/sonictemplate.vim | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 autoload/fzf/sonictemplate.vim (limited to 'autoload') diff --git a/autoload/fzf/sonictemplate.vim b/autoload/fzf/sonictemplate.vim new file mode 100644 index 0000000..7d80e02 --- /dev/null +++ b/autoload/fzf/sonictemplate.vim @@ -0,0 +1,11 @@ +function! s:handler(item) abort + call sonictemplate#apply(a:item, 'n') +endfunction + +function! fzf#sonictemplate#run() abort + call fzf#run( + \ fzf#wrap({ + \ 'sink*': function('s:handler'), + \ 'source': sonictemplate#complete("", "", 0) + \})) +endfunction -- cgit v1.2.3-54-g00ecf