Add mapping for :ClangdSwitchSourceHeader LSP extension

This commit is contained in:
Kenneth Benzie 2024-05-03 11:39:49 +01:00
parent 3e94d25caf
commit 5f2c45050c

View File

@ -194,6 +194,10 @@ return {
-- Format whole buffer mapping
vim.keymap.set('n', '<leader>gq', vim.lsp.buf.format, opts)
-- Swtich file using clangd extension
-- TODO: limit this to only filetypes supported by clangd
vim.keymap.set('n', '<leader>sf', ':ClangdSwitchSourceHeader<CR>', { silent = true })
end
})