diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2020-02-12 18:56:18 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2020-02-12 18:56:18 +0900 |
commit | c509d37b42a098bec86e6cd91d220ccaaf3202cf (patch) | |
tree | 618cdb4fe54357c838ed0664c7df02c710e6246b /autoload | |
parent | 7d7f72dcf1d5be24746b21e28e87cb3ed7adebef (diff) | |
download | vim-sonictemplate-c509d37b42a098bec86e6cd91d220ccaaf3202cf.tar.gz vim-sonictemplate-c509d37b42a098bec86e6cd91d220ccaaf3202cf.tar.bz2 vim-sonictemplate-c509d37b42a098bec86e6cd91d220ccaaf3202cf.zip |
Add fzf source
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/fzf/sonictemplate.vim | 11 |
1 files changed, 11 insertions, 0 deletions
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 |