-
Notifications
You must be signed in to change notification settings - Fork 146
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
Key map with suffix not work #713
Comments
This should be fixed after #487 |
I'm not able to reproduce this vim.keymap.set('i', ';<space>', '<cmd>echo "foo"<cr>', { noremap = false, silent = true }) keymap = {
[';'] = { function() return false end, 'fallback' }
} |
Return false will not reprodue, use this minimal below: local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
require('lazy').setup({
spec = {
{
'saghen/blink.cmp',
version = '*',
---@module 'blink.cmp'
---@type blink.cmp.Config
opts = {
keymap = {
preset = 'none',
[';'] = {
function(cmp)
return cmp.accept()
end, 'fallback' },
},
},
opts_extend = { "sources.default" }
},
}
})
vim.keymap.set({ 'i' }, ';<space>', ';', { silent = true, remap = false }) |
This is quite the edge case :D It seems like the keymap never gets called by neovim, so there's not much we can do on our side. You might want to want to wait for #487 which may resolve this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make sure you have done the following
blink.cmp
Bug Description
I've mapped
;<space>
to some functionality in insert mode, then I update thekeymap
to accept the second item.I can not accept the second item unless I remove the
;<space>
keymap:Input something first:
Input
;
, it seems to waif forupdatetime
to determine it's single key or continuous key:After that, nothing happend, event the
;
is not inserted:Relevant configuration
neovim version
NVIM v0.10.1
blink.cmp
version: branch, tag, or commitv0.8.1
The text was updated successfully, but these errors were encountered: