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
with these 3 handlers plus extra "fake" key <S-CR> (fake here means I do not actually press this key, it's used only to run handler function from <CR> mapping, see below):
The "fake" <S-CR> key/handler is needed because this does not work (result in "E5108: Error executing lua: ....local/share/nvim/lazy/nvim-cmp/lua/cmp/utils/window.lua:201: E565: Not allowed to change text or change window") for unknown (to me) reason:
The reason for this feature request is known conflict between
cabbrev
andcnoremap <CR>
.Showcase:
First
:info
works while second result in "E492: Not an editor command: info". Using:cmap
instead of:cnoremap
fixes this issue.Because of the conflict this code breaks all
cabbrev
:Example of similar issue/fix in another project: inside/vim-search-pulse#9.
At the moment I've worked around this issue in really ugly way: I replaced this trivial handler (which conflicts with
cabbrev
)with these 3 handlers plus extra "fake" key
<S-CR>
(fake here means I do not actually press this key, it's used only to run handler function from<CR>
mapping, see below):The "fake"
<S-CR>
key/handler is needed because this does not work (result in "E5108: Error executing lua: ....local/share/nvim/lazy/nvim-cmp/lua/cmp/utils/window.lua:201: E565: Not allowed to change text or change window") for unknown (to me) reason:The text was updated successfully, but these errors were encountered: