Skip to content

Commit

Permalink
vim installation helper command; update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
raghur committed May 18, 2018
1 parent 4b35c7e commit c30c0de
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Then in your `.vimrc`:
[source,vim]
----
Plug 'Shougo/denite.nvim'
Plug 'raghur/fuzzy-denite'
Plug 'raghur/fuzzy-denite', {'do': ':FuzzyDeniteInstall'}
call denite#custom#source('_', 'matchers', ['matcher/gofuzzy'])
----
Expand Down
12 changes: 12 additions & 0 deletions plugin/fuzzy-denite.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
if exists("g:loaded_fuzzy_denite")
finish
endif

let g:loaded_fuzzy_denite = 1

function! s:installFuzzyDenite()
" just running ./install doesn't work on windows.
" form full path and call.
let out = system(getcwd() . "/install")
endfunction
command! -nargs=0 FuzzyDeniteInstall call s:installFuzzyDenite()

0 comments on commit c30c0de

Please sign in to comment.