mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-22 12:31:07 +00:00
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:
parent
28db03f958
commit
f06653abac
1 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue