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.
This commit is contained in:
Adrian Wilkins 2025-11-27 22:11:58 +00:00
parent 28db03f958
commit f06653abac

View file

@ -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", "<Plug>(leap-forward)")
vim.keymap.set({ "n", "x", "o" }, "S", "<Plug>(leap-backward)")
vim.keymap.set("n", "gs", "<Plug>(leap-from-window)")
end,
},