1
0

Add keymap to duplicate the current line

This commit is contained in:
Patrick Auernig 2024-09-30 20:45:29 +02:00
parent e4c6d76b72
commit d016fead7f

View File

@ -27,6 +27,7 @@ local maps = {
{ "v", "K", ":move '<-2<CR>gv=gv", { desc = "Move selected lines up" } },
{ "n", "J", "mzJ`z", { desc = "Join lines without moving the cursor" } },
{ "n", "<C-p>", "mzyyp`zj", { desc = "Duplicate current line" } },
}
for _, m in pairs(maps) do