You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifhas('vim_starting')
setencoding=utf-8endifscriptencoding utf-8if &compatiblesetnocompatibleendiflets:plug_dir=expand('/tmp/plugged/vim-plug')
if!filereadable(s:plug_dir .. '/plug.vim')
executeprintf('!curl -fLo %s/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim', s:plug_dir)
endexecute'set runtimepath+=' . s:plug_dircallplug#begin(s:plug_dir)
Plug 'hrsh7th/nvim-cmp'
Plug 'hrsh7th/cmp-buffer'
Plug 'hrsh7th/cmp-nvim-lsp'
Plug 'hrsh7th/vim-vsnip'
Plug 'neovim/nvim-lspconfig'callplug#end()
PlugInstall | quit" Example key mapping to reproducennoremapooo<Esc>inoremapmmpp" Some other example casennoremaptonnoremaptto<Esc>inoremapmmppnnoremaprinnoremaprri<Esc>inoremapmmpp
Description
Key map in insert mode not work as expected after entered insert mode by key (First Character) in normal mode that have other key map that start with same key (First Character).
Steps to reproduce
Add nvim-cmp plugin without or with setup
Add key map for normal mode and add key map for insert mode as shown in Minimal reproducible full config.
After I tinkering around I found that in this line of code, if I put 'in' into the second parameter feedkeys.call('', 'in', callback) it fix the problem.
FAQ
Announcement
Minimal reproducible full config
Description
Key map in insert mode not work as expected after entered insert mode by
key
(First Character) in normal mode that have other key map that start with samekey
(First Character).Steps to reproduce
nvim-cmp
plugin without or with setupomm
ortmm
orrmm
Expected behavior
Neovim enter insert mode and
mm
turn intopp
Actual behavior
Text still
mm
Additional context
After remove
Plug 'hrsh7th/nvim-cmp'
key map work as expected.The text was updated successfully, but these errors were encountered: