aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/map.lua
diff options
context:
space:
mode:
authorXander Swan <email>2025-12-03 10:00:41 -0500
committerXander Swan <email>2025-12-03 10:00:41 -0500
commit9fdb3c70f6cec1ee9ad32ac4257e8deb1fef2525 (patch)
tree7ea586ce90bae714a81219a0188942f599aeda97 /.config/nvim/lua/map.lua
parentc43f28aaa0f24bb442810ccebca03e2376998048 (diff)
update
Diffstat (limited to '.config/nvim/lua/map.lua')
-rw-r--r--.config/nvim/lua/map.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/.config/nvim/lua/map.lua b/.config/nvim/lua/map.lua
index 94f57d2..6dcc1da 100644
--- a/.config/nvim/lua/map.lua
+++ b/.config/nvim/lua/map.lua
@@ -40,9 +40,11 @@ vim.keymap.set(nv, "G", "Gzz", {})
-- Make going to the end of a line as easy as going to the beginning
vim.keymap.set({"n", "v", "o"}, "+", "$", {})
--- Allow yanking to system clipboard
+-- Yanking and pasting
vim.keymap.set(nv, "<leader>y", "\"+y", {})
vim.keymap.set(nv, "<leader>p", "\"+p", {})
+vim.keymap.set("x", "p", "\"_dP", {})
+vim.keymap.set("x", "<leader>P", "p", {})
-- Commands
vim.keymap.set(nv, "<leader>c", "<CMD>set invhlsearch<CR>", {silent=true})
@@ -51,6 +53,8 @@ vim.keymap.set(nv, "<leader>t", function()
vim.cmd("split")
vim.cmd("term")
end, {silent=true})
+vim.keymap.set("n", "{", "<CMD>cp<CR>", {silent=true})
+vim.keymap.set("n", "}", "<CMD>cn<CR>", {silent=true})
-- Common typo with me
vim.api.nvim_create_user_command("W", "w", {bang=true})