From fdf06b78bcbf5fb9496ea4f0703b7050ed766e0b Mon Sep 17 00:00:00 2001 From: Nurtrantpoem19 Date: Thu, 11 Jun 2026 17:15:04 -0400 Subject: [PATCH] added keymaps for alt arrow key to move lines up and down --- lua/custom/plugins/init.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index c05db465..afc88495 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -11,3 +11,8 @@ for file_name, type in vim.fs.dir(plugins_dir) do require('custom.plugins.' .. module) end end +--custom keymaps i will set here +-- +--1) this one is for moving lines like in vscode, up and down with alt j or down with alt-k +vim.keymap.set("n", "", ":m .+1==") +vim.keymap.set("n", "", ":m .-2==")