feat(move): replace move.nvim with vim-move

This commit is contained in:
2024-09-25 06:18:30 +02:00
parent 7c5c0a9984
commit bbd3dab165
3 changed files with 7 additions and 24 deletions
-22
View File
@@ -1,22 +0,0 @@
-- https://github.com/fedepujol/move.nvim
-- TODO: figure out how to add "silent" to keymaps
---@type LazyPluginSpec
return {
"fedepujol/move.nvim",
keys = {
{ "<A-j>", function() vim.cmd.MoveLine(1) end, mode = "n" },
{ "<A-k>", function() vim.cmd.MoveLine(-1) end, mode = "n" },
{ "<A-h>", function() vim.cmd.MoveHChar(-1) end, mode = "n" },
{ "<A-l>", function() vim.cmd.MoveHChar(1) end, mode = "n" },
{ "<A-j>", ":MoveBlock(1)<CR>", mode = "x" },
{ "<A-k>", ":MoveBlock(-1)<CR>", mode = "x" },
{ "<A-h>", ":MoveHBlock(-1)<CR>", mode = "x" },
{ "<A-l>", ":MoveHBlock(1)<CR>", mode = "x" },
},
opts = {
char = {
enable = true,
},
},
}
+6
View File
@@ -0,0 +1,6 @@
-- https://github.com/matze/vim-move
---@type LazyPluginSpec
return {
"matze/vim-move",
}