From 3166236ff88a13e7e5b7579ae780b682f2356d62 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Fri, 29 Mar 2024 00:21:52 +0100 Subject: [PATCH] fix(mini.move): default mini.move setup already maps the correct keys --- .../plugins/extras/editor/mini-move.lua | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/lua/lazyvim/plugins/extras/editor/mini-move.lua b/lua/lazyvim/plugins/extras/editor/mini-move.lua index 96cd129a8..aa8823ef2 100644 --- a/lua/lazyvim/plugins/extras/editor/mini-move.lua +++ b/lua/lazyvim/plugins/extras/editor/mini-move.lua @@ -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] = { - "", - mode = { "i", "n" }, - function() - move.move_line(dir) - end, - } - end - for i, dir in ipairs(directions) do - ret[#ret + 1] = { - "", - mode = { "v" }, - function() - move.move_selection(dir) - end, - } - end - return ret - end, }, }