diff --git a/common/.config/nvim/lua/config/keymaps.lua b/common/.config/nvim/lua/config/keymaps.lua index 84f0a35..a0a9246 100644 --- a/common/.config/nvim/lua/config/keymaps.lua +++ b/common/.config/nvim/lua/config/keymaps.lua @@ -9,6 +9,8 @@ vim.keymap.set({ "n" }, "", "edit " .. vim.fn.expand(vim.fn.stdpath("c vim.keymap.set({ "n", "v" }, "y", '"+y', { desc = "Copy to system clipboard" }) vim.keymap.set({ "n", "v" }, "p", '"+p', { desc = "Paste from system clipboard" }) +-- Disable [Ctrl + p] to paste in edit mode; avoids accidentally pressing `p` when actually doing `Ctrl + [` +vim.keymap.set("i", "", "", { noremap = true, silent = true }) -- Remap for dealing with word wrap vim.keymap.set({ "n", "x" }, "j", "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true })