From f06653abac3530d794b89476b4ce3b12f2261b9b Mon Sep 17 00:00:00 2001 From: Adrian Wilkins Date: Thu, 27 Nov 2025 22:11:58 +0000 Subject: [PATCH] fix(leap): "default mappings are deprecated" warning from leap Replace the call to `leap.add_default_mappings` with the part of the default mappings that wasn't immediately deleted afterwards. --- lua/lazyvim/plugins/extras/editor/leap.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/lazyvim/plugins/extras/editor/leap.lua b/lua/lazyvim/plugins/extras/editor/leap.lua index 3fe4c5e7..1c1397bd 100644 --- a/lua/lazyvim/plugins/extras/editor/leap.lua +++ b/lua/lazyvim/plugins/extras/editor/leap.lua @@ -29,9 +29,9 @@ return { for k, v in pairs(opts) do leap.opts[k] = v end - leap.add_default_mappings(true) - vim.keymap.del({ "x", "o" }, "x") - vim.keymap.del({ "x", "o" }, "X") + vim.keymap.set({ "n", "x", "o" }, "s", "(leap-forward)") + vim.keymap.set({ "n", "x", "o" }, "S", "(leap-backward)") + vim.keymap.set("n", "gs", "(leap-from-window)") end, },