add keymaps and plugins

This commit is contained in:
sadanslargehole 2024-03-15 15:05:44 -04:00
parent 671a7efdb9
commit f5c8df2248
No known key found for this signature in database
GPG key ID: B2E2F4A5161A7800
3 changed files with 27 additions and 17 deletions

View file

@ -44,3 +44,8 @@ vim.keymap.set("n", "<C-[>", "zc", {})
vim.keymap.set("n", "<C-]>", "zo", {})
-- clangd switch source/header
vim.keymap.set({ "i", "n" }, "<A-o>", vim.cmd.ClangdSwitchSourceHeader, { silent = true })
-- goto mappings
vim.keymap.set({"i", "n"}, "gd", vim.lsp.buf.definition, {})
vim.keymap.set({"i", "n"}, "gD", vim.lsp.buf.declaration, {})
vim.keymap.set({"i", "n"}, "gi", vim.lsp.buf.implementation, {})
vim.keymap.set({"i", "n"}, "<C-.>", vim.lsp.buf.code_action, {})