Mercurial > vim-crosoft
diff autoload/vimcrosoft/fzf.vim @ 0:5d2c0db51914
Initial commit
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 17 Sep 2019 13:24:24 -0700 |
parents | |
children | bac97082e229 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/autoload/vimcrosoft/fzf.vim Tue Sep 17 13:24:24 2019 -0700 @@ -0,0 +1,19 @@ + +function! vimcrosoft#fzf#init() abort +endfunction + +function! vimcrosoft#fzf#on_sln_changed(slnpath) abort + let $FZF_DEFAULT_COMMAND = s:build_file_list_command(a:slnpath) +endfunction + +function! vimcrosoft#fzf#on_sln_cleared() abort + unlet $FZF_DEFAULT_COMMAND +endfunction + +function! s:build_file_list_command(slnpath) abort + let l:scriptpath = vimcrosoft#get_script_path('list_sln_files.py') + return 'python '.shellescape(l:scriptpath). + \' '.shellescape(a:slnpath) + \.' --cache '.shellescape(g:vimcrosoft_current_sln_cache) +endfunction +