Add mapping for :ClangdSwitchSourceHeader LSP extension
This commit is contained in:
parent
3e94d25caf
commit
5f2c45050c
@ -194,6 +194,10 @@ return {
|
|||||||
|
|
||||||
-- Format whole buffer mapping
|
-- Format whole buffer mapping
|
||||||
vim.keymap.set('n', '<leader>gq', vim.lsp.buf.format, opts)
|
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
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user