X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/5f86da4c7a08b25e28a9ed1c72d3ae1c931a1bde..ae723b37b2a50dc76c9336fba39b1f3826a754dc:/vim/ftplugin/cpp.vim?ds=sidebyside diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim index 807ef89..ec68cf2 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 @@ -85,6 +91,10 @@ function! s:Debug(...) nnoremap :Step nnoremap :Over nnoremap :Finish + nnoremap :call TermDebugSendCommand('advance -source '.expand('%').' -line '.line(".")) + nnoremap :Step + nnoremap :Over + nnoremap :Finish endfunction command! -nargs=* -complete=file -bang Debug call Debug() | Termdebug command! -nargs=+ -complete=file -bang DebugCommand call Debug() | TermdebugCommand