Closed strash closed 1 day ago
Before the v0.2.1 update there was no such issue.
This keymap code is tricky... please send the output of these two commands
:verbose map <cr>
:verbose imap <cr>
:verbose map <cr>
s <CR> * <Lua 99: ~/.config/nvim/lua/map.lua:30>
scroll down and align the cursor
Last set from Lua (run Nvim with -V1 for more details)
n <CR> * <Lua 80: ~/.config/nvim/lua/map.lua:30>
scroll down and align the cursor
Last set from Lua (run Nvim with -V1 for more details)
:verbose imap <cr>
i <CR> *@<Lua 247: ~/.local/share/nvim/lazy/blink.cmp/lua/blink/cmp/keymap.lua:47>
blink.cmp
Last set from Lua (run Nvim with -V1 for more details)
i <CR> * <Lua 76: ~/.config/nvim/lua/map.lua:30>
scroll down and align the cursor
Last set from Lua (run Nvim with -V1 for more details)
Thanks! Could you send over your code for the two keymaps listed there?
You mean this?
~/.config/nvim/lua/map.lua:30
{
mode = { "n", "i", "s" },
key = "<CR>",
cmd = function()
if vim.snippet.active() then
return map_util.wrap_in_cmd("lua vim.snippet.stop()")
else
return "<CR>"
end
end,
opts = { desc = "scroll down and align the cursor", expr = true }
},
My blink config:
https://github.com/user-attachments/assets/1d4c5ebe-14e0-4896-86f9-f8fca8ca0b54