From a668139491d927e6d1b4241faf0f7ee66755ec06 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Fri, 1 Oct 2021 09:50:48 +0530 Subject: [PATCH] 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 --- nvim/.config/nvim/after/ftplugin/c.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nvim/.config/nvim/after/ftplugin/c.vim b/nvim/.config/nvim/after/ftplugin/c.vim index dace65f..e93181d 100644 --- a/nvim/.config/nvim/after/ftplugin/c.vim +++ b/nvim/.config/nvim/after/ftplugin/c.vim @@ -1,5 +1,7 @@ setlocal makeprg=ninja\ -C\ build +nmap gh :ClangdSwitchSourceHeader + " 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.