From aec21cd7df848f2a47411648d6f6f44e9e702384 Mon Sep 17 00:00:00 2001 From: ditsuke Date: Fri, 10 Feb 2023 15:57:31 +0530 Subject: [PATCH] chore: better dependency declaration for leap/flit As flit depends on leap and leap should be a component on its own, declarations are decoupled with a more apt flit -> leap dependency declaration --- lua/lazyvim/plugins/editor.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lua/lazyvim/plugins/editor.lua b/lua/lazyvim/plugins/editor.lua index 22faebaf..507ba90f 100644 --- a/lua/lazyvim/plugins/editor.lua +++ b/lua/lazyvim/plugins/editor.lua @@ -139,11 +139,10 @@ return { }, }, - -- easily jump to any location and enhanced f/t motions for Leap + -- enhanced 2-char search motions { "ggandor/leap.nvim", event = "VeryLazy", - dependencies = { { "ggandor/flit.nvim", opts = { labeled_modes = "nv" } } }, config = function(_, opts) local leap = require("leap") for k, v in pairs(opts) do @@ -152,6 +151,12 @@ return { leap.add_default_mappings(true) end, }, + -- easily jump to any location and enhanced f/t motions for Leap + { + "ggandor/flit.nvim", + dependencies = { { "ggandor/leap.nvim" } }, + opts = { labeled_modes = "nv" }, + }, -- which-key {