Mercurial > vim-crosoft
diff autoload/vimcrosoft/youcompleteme.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 | 5d2c0db51914 |
children |
line wrap: on
line diff
--- a/autoload/vimcrosoft/youcompleteme.vim Thu Sep 24 22:57:50 2020 -0700 +++ b/autoload/vimcrosoft/youcompleteme.vim Thu Sep 24 23:02:16 2020 -0700 @@ -1,3 +1,5 @@ + +let g:vimcrosoft_extra_clang_args = get(g:, 'vimcrosoft_extra_clang_args', []) function! vimcrosoft#youcompleteme#init() abort endfunction @@ -8,7 +10,8 @@ \'g:vimcrosoft_current_sln', \'g:vimcrosoft_current_sln_cache', \'g:vimcrosoft_current_config', - \'g:vimcrosoft_current_platform' + \'g:vimcrosoft_current_platform', + \'g:vimcrosoft_extra_clang_args' \] endfunction