From bd9b7195c1b89559222aaaef15449655650ca363 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Tj=C3=A4der?= <henrik.tjader@nordicsemi.no> Date: Mon, 1 Aug 2022 16:10:57 +0200 Subject: [PATCH] coc clangd add keybinds for jumping to header/src --- .vimrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.vimrc b/.vimrc index 785631b..efbe7f3 100644 --- a/.vimrc +++ b/.vimrc @@ -947,6 +947,9 @@ nmap <silent> <leader>gt :call CocAction('jumpDefinition', 'tabe')<CR> nmap <silent> <leader>me <Plug>(coc-command)expandMacro +nmap <silent> <leader>gh :CocCommand clangd.switchSourceHeader<CR> +nmap <silent> <leader>gH :CocCommand clangd.switchSourceHeader vsplit<CR> +nmap <silent> <leader>gsi :CocCommand clangd.SymbolInfo<CR> " Use K to show documentation in preview window nnoremap <silent> K :call <SID>show_documentation()<CR> -- GitLab