Skip to content

Commit

Permalink
refactor: Use small, move cmp down where it's used
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusramberg committed Sep 29, 2024
1 parent bbe418b commit af21be1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/nvim/lua/config/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
-- -- Add any additional keymaps here
--
local keymap = vim.keymap.set
local cmp = require("cmp")
keymap({ "n", "v", "i" }, "<C-p>", "<cmd>Telescope find_files<cr>", { desc = "Find Files" })
keymap("n", "U", "<C-r>", { desc = "Redo" })
keymap("n", "<C-r>", "<cmd>Telescope oldfiles<cr>", { desc = "Find Files" })
keymap("n", "<leader>pp", "<cmd>Telescope project<cr>", { desc = "Switch Project" })
keymap("n", "<leader>gg", "<cmd>Neogit<cr>", { desc = "Neogit" })
keymap("n", "<leader>gG", "<cmd>Neogit cwd=.<cr>", { desc = "Neogit (cwd)" })
keymap("n", "<leader>gb", "<cmd>BlamerToggle<cr>", { desc = "Toggle Blame" })
local cmp = require("cmp")
keymap("i", "<C-CR>", function()
cmp.complete()
end, { desc = "Complete" })
Expand Down

0 comments on commit af21be1

Please sign in to comment.