From: Samir Benmendil Date: Sat, 1 May 2021 13:55:33 +0000 (+0100) Subject: vim/cpp: disable ycm auto hover and provide mappings for it X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/bfa7a2383b6e7742a6659578f4cc1f0ccee5a184?ds=inline vim/cpp: disable ycm auto hover and provide mappings for it --- diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim index 807ef89..fcd8066 100644 --- a/vim/ftplugin/cpp.vim +++ b/vim/ftplugin/cpp.vim @@ -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