From b9d737761b09967d1c6a3af9c896031d390759c7 Mon Sep 17 00:00:00 2001 From: Xavier Logerais Date: Sun, 2 Mar 2025 19:34:03 +0100 Subject: [PATCH] feat: Add keymap to easily select recently pasted text --- lua/custom/keymaps.lua | 6 ++++++ lua/polish.lua | 3 +++ 2 files changed, 9 insertions(+) create mode 100644 lua/custom/keymaps.lua diff --git a/lua/custom/keymaps.lua b/lua/custom/keymaps.lua new file mode 100644 index 0000000..9743846 --- /dev/null +++ b/lua/custom/keymaps.lua @@ -0,0 +1,6 @@ +-- +-- Keymaps +-- + +-- Selected (visual) pasted text +vim.keymap.set("n", "gp", "`[v`]") diff --git a/lua/polish.lua b/lua/polish.lua index f820cce..ad46c4a 100644 --- a/lua/polish.lua +++ b/lua/polish.lua @@ -2,6 +2,9 @@ -- things like custom filetypes. This just pure lua so anything that doesn't -- fit in the normal config locations above can go here +-- Set up custom keymaps +require("custom.keymaps") + -- Set up custom autocmds require("custom.autocmds")