Skip to content

lazy.nvim resets custom mappings when using keys #191

@ShaolunWang

Description

@ShaolunWang

As title suggested, if I map any key that is one of the default keys, e.g. s to bidirectional leap it only work once:

vim.keymap.set({ 'n', 'x', 'o' }, 's', function()
	local current_window = vim.fn.win_getid()
	require('leap').leap({ target_windows = { current_window } })
end, { noremap = true, desc = 'leap' })

And after leaping for the first time s would get remapped back to the default vim one. This might be caused by executing unbinding during every leap

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions