Mercurial > vim-crosoft
view autoload/vimcrosoft/fzf.vim @ 10:f444739dd8af
Improvements to YCM dynamic flags.
- Fallback to a "companion" item (e.g. header/source) or a nearby item
when no flags are found for an item.
- Finding a "companion" is also exposed as a standalone script.
- Ability to pass extra clang flags, including some from a special
file found in the .vimcrosoft directory.
- Add support for PCH and other forced-include files.
- Add options for short/long args, or forcing forward slashes.
- Debugging/troubleshooting options, including dumping a batch file and
response file to run clang directly, and the ability to auto-load a
solution's last known environment when running in command line.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 24 Sep 2020 23:02:16 -0700 |
parents | bac97082e229 |
children |
line wrap: on
line source
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') let l:list_cache_path = vimcrosoft#get_sln_cache_file('fzffilelist.txt') return 'python '.shellescape(l:scriptpath). \' '.shellescape(a:slnpath). \' --cache '.shellescape(g:vimcrosoft_current_sln_cache). \' --list-cache '.shellescape(l:list_cache_path) endfunction