Skip to content

Commit

Permalink
fix(mini.move): default mini.move setup already maps the correct keys
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Mar 28, 2024
1 parent 20b2806 commit 3166236
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions lua/lazyvim/plugins/extras/editor/mini-move.lua
Expand Up @@ -3,30 +3,5 @@ return {
"echasnovski/mini.move",
event = "VeryLazy",
opts = {},
keys = function()
local ret = {}
local directions = { "left", "down", "up", "right" }
local keys = { "h", "j", "k", "l" }
local move = require("mini.move")
for i, dir in ipairs(directions) do
ret[#ret + 1] = {
"<A-" .. keys[i] .. ">",
mode = { "i", "n" },
function()
move.move_line(dir)
end,
}
end
for i, dir in ipairs(directions) do
ret[#ret + 1] = {
"<A-" .. keys[i] .. ">",
mode = { "v" },
function()
move.move_selection(dir)
end,
}
end
return ret
end,
},
}

0 comments on commit 3166236

Please sign in to comment.