nvim: after/ftplugin/C: Add a key mapping for ClangSwitchSourceHeader

This allows us to switch seamlessly between source and header file.

Its provided by nvim-lspconfig. See
https://github.com/neovim/nvim-lspconfig/blob/master/lua/lspconfig/clangd.lua
This commit is contained in:
Sanchayan Maity 2021-10-01 09:50:48 +05:30
parent 62e99dd1f0
commit a668139491
1 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,7 @@
setlocal makeprg=ninja\ -C\ build
nmap <buffer> <silent> gh :ClangdSwitchSourceHeader<CR>
" If we are working with any of the gstreamer projects in C, run gst-ident
" before saving. Assume gst-ident from gstreamer/tools/gst-indent has been
" made available in path.