diff --git a/nvim/.config/nvim/lua/romanzy/keymaps.lua b/nvim/.config/nvim/lua/romanzy/keymaps.lua index c306f23..0dcbd12 100644 --- a/nvim/.config/nvim/lua/romanzy/keymaps.lua +++ b/nvim/.config/nvim/lua/romanzy/keymaps.lua @@ -42,6 +42,11 @@ map("n", "bp", "bprevious", { desc = "prev buffer" }) map("n", "bn", "bnext", { desc = "next buffer" }) map("n", "bd", "bdelete", { desc = "delete buffer" }) +map({ "n", "v" }, "y", '"+y', { desc = "yank to system clipboard" }) +map("n", "Y", '"+Y', { desc = "yank line to system clipboard" }) +map("n", "p", '"+p', { desc = "paste from system clipboard" }) +map("n", "P", '"+P', { desc = "paste before from system clipboard" }) + map("t", "", "", { desc = "exit terminal" }) map("t", "\\", "", { desc = "exit terminal" }) @@ -66,21 +71,6 @@ map({ "n", "i", "v", "x", "s", "o", "c" }, { "", "", "", "