comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:5d2c0db51914
1
2 function! vimcrosoft#fzf#init() abort
3 endfunction
4
5 function! vimcrosoft#fzf#on_sln_changed(slnpath) abort
6 let $FZF_DEFAULT_COMMAND = s:build_file_list_command(a:slnpath)
7 endfunction
8
9 function! vimcrosoft#fzf#on_sln_cleared() abort
10 unlet $FZF_DEFAULT_COMMAND
11 endfunction
12
13 function! s:build_file_list_command(slnpath) abort
14 let l:scriptpath = vimcrosoft#get_script_path('list_sln_files.py')
15 return 'python '.shellescape(l:scriptpath).
16 \' '.shellescape(a:slnpath)
17 \.' --cache '.shellescape(g:vimcrosoft_current_sln_cache)
18 endfunction
19