josean-dev / dev-environment-files

2.64k stars 740 forks source link

Adding Moving Lines #15

Open LockeAG opened 1 year ago

LockeAG commented 1 year ago

Maybe adding Moving lines (https://github.com/fedepujol/move.nvim) or simple :m .+1<CR> would be a great idea.

keymap.set("n", "<leader>k", ":MoveLine(-1)<CR>", opts) -- move line vertical above
keymap.set("n", "<leader>j", ":MoveLine(1)<CR>", opts) -- move line vertical below

Works, Ok.... is helpful; maybe changing to <A-k> and <A-j> would be better for Mac/VsCode Users.

Definetly Alt+Up , Alt+Down, Shift+Alt+Up/Down on VSCode is great

Of course, we can only use dd or yy and P or p. But could be a great feature.