]> git.rmz.io Git - dotfiles.git/blobdiff - vim/vimrc
vim: fix ycm for rospack (and probably others)
[dotfiles.git] / vim / vimrc
index d4e8e489a404e4536327a3aac0c551676644a0ad..31bc4b008c0bc5a08c378838983e051b446d9a75 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -442,6 +442,7 @@ let g:UltiSnipsSnippetsDir = "$XDG_CONFIG_HOME/vim/ultisnips"
 " youcompleteme {{{2
 let g:ycm_extra_conf_globlist = ['~/src/*','/mnt/data/src/*']
 let g:ycm_global_ycm_extra_conf = expand('$XDG_CONFIG_HOME/vim/ycm_extra_conf.py')
+let g:ycm_extra_conf_vim_data = ['getcwd()']
 let g:ycm_add_preview_to_completeopt = 1
 let g:ycm_autoclose_preview_window_after_insertion = 1
 "let g:ycm_extra_conf_vim_data = ['%:p']