Sanchayan Maity
a668139491
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
13 lines
537 B
VimL
13 lines
537 B
VimL
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.
|
|
"
|
|
" The '!' after autocmd is required without which, the command gets triggered
|
|
" multiple times. Basically, we clear the autocmd.
|
|
autocmd! BufWritePost */gst-*/*.c call c#format_with_gst_indent()
|
|
autocmd! BufWritePost */gstreamer-*/*.c call c#format_with_gst_indent()
|