-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
floaty ux keymap hardcoded? #9
Comments
Hi @rafcamlet . I use the floaty inserter. And the expand/advance triggers (both 1 and -1) is being remapped just fine.
|
@salkin-mada There are hardcoded mappings in floaty ux buffer, which overwrites my custom mappings. https://github.com/norcalli/snippets.nvim/blob/663029663e0681c49e71f18ec81650c650e7c7aa/lua/snippets/inserters/floaty.lua#L316:L320
I'm using |
As a workaround, I was able to override the local M = require'snippets'
local orig_advance = M.advance_snippet
local advance = function(offset)
offset = offset or 1
orig_advance(-offset)
end
M.advance_snippet = advance |
It seems to floaty ux has its keymaps hardcoded. It's quite unexpected, especally if you have mapped
<c-j>
as advence(1) and after expand it change into advence(-1).https://github.com/norcalli/snippets.nvim/blob/663029663e0681c49e71f18ec81650c650e7c7aa/lua/snippets/inserters/floaty.lua#L316:L320
The text was updated successfully, but these errors were encountered: