diff --git a/lua/lazyvim/plugins/editor.lua b/lua/lazyvim/plugins/editor.lua index 27909eb2..956ae1c0 100644 --- a/lua/lazyvim/plugins/editor.lua +++ b/lua/lazyvim/plugins/editor.lua @@ -151,10 +151,25 @@ return { }, -- easily jump to any location and enhanced f/t motions for Leap + { + "ggandor/flit.nvim", + keys = function() + ---@type LazyKeys[] + local ret = {} + for _, key in ipairs({ "f", "F", "t", "T" }) do + ret[#ret + 1] = { key, mode = { "n", "x", "o" }, desc = key } + end + return ret + end, + opts = { labeled_modes = "nx" }, + }, { "ggandor/leap.nvim", - event = "VeryLazy", - dependencies = { { "ggandor/flit.nvim", opts = { labeled_modes = "nv" } } }, + keys = { + { "s", mode = { "n", "x", "o" }, desc = "Leap forward to" }, + { "S", mode = { "n", "x", "o" }, desc = "Leap backward to" }, + { "gs", mode = { "n", "x", "o" }, desc = "Leap from windows" }, + }, config = function(_, opts) local leap = require("leap") for k, v in pairs(opts) do