X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/a975a3a64e3e421dbdf28aedf0a99f17c6b81753..b6916fcd97ab132495e36b97ccac28c285906a68:/vim/ftplugin/cpp.vim diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim index c76f79b..fcd8066 100644 --- a/vim/ftplugin/cpp.vim +++ b/vim/ftplugin/cpp.vim @@ -18,7 +18,7 @@ let b:load_doxygen_syntax = 1 augroup fswitch_cpp au! - au BufEnter *.h let b:fswitchdst = 'c,cpp' + au BufEnter *.h let b:fswitchdst = 'c,cpp,cc' au BufEnter *.h let b:fswitchlocs = '.,reg:|include.*|src|' au BufEnter *.hpp let b:fswitchdst = 'cpp,c' au BufEnter *.hpp let b:fswitchlocs = '.,reg:|include.*|src|' @@ -62,6 +62,12 @@ vnoremap = :YcmCompleter Format nnoremap g= = vnoremap g= = +" hover popup +let g:ycm_auto_hover = '' +let b:ycm_hover = { 'command': 'GetDoc', 'syntax': &filetype } +nmap gh (YCMHover) +nmap gH :YcmCompleter GetDoc + setlocal errorformat= setlocal errorformat+=%f:%l:%c:\ %trror:\ %m setlocal errorformat+=%f:%l:%c:\ %tarning:\ %m