diff --git a/lua/plugins/completions.lua b/lua/plugins/completions.lua index d12c27b..abb732f 100644 --- a/lua/plugins/completions.lua +++ b/lua/plugins/completions.lua @@ -194,6 +194,10 @@ return { -- Format whole buffer mapping vim.keymap.set('n', 'gq', vim.lsp.buf.format, opts) + + -- Swtich file using clangd extension + -- TODO: limit this to only filetypes supported by clangd + vim.keymap.set('n', 'sf', ':ClangdSwitchSourceHeader', { silent = true }) end })