]> git.rmz.io Git - dotfiles.git/commitdiff
vim/cpp: add mapping for YcmCompleter GoToReferences
authorSamir Benmendil <me@rmz.io>
Fri, 8 May 2020 14:44:07 +0000 (15:44 +0100)
committerSamir Benmendil <me@rmz.io>
Fri, 8 May 2020 14:44:07 +0000 (15:44 +0100)
vim/ftplugin/cpp.vim

index edc1f32118e0684aed4d4f0ea1fdbf873d076c19..a3155926ebba72feb4306040ac962d7f4568f02f 100644 (file)
@@ -47,6 +47,7 @@ nnoremap <buffer> <leader>c :call switch#Switch(g:switch_const_definitions, {})<
 
 nnoremap <buffer> gd :YcmCompleter GoTo<CR>
 nnoremap <buffer> <C-W>d :vs<CR>:YcmCompleter GoTo<CR>
 
 nnoremap <buffer> gd :YcmCompleter GoTo<CR>
 nnoremap <buffer> <C-W>d :vs<CR>:YcmCompleter GoTo<CR>
+nnoremap <buffer> gD :YcmCompleter GoToReferences<CR>
 
 " format with =
 map <buffer> = <Plug>(operator-clang-format)
 
 " format with =
 map <buffer> = <Plug>(operator-clang-format)