Closed cmac4603 closed 1 year ago
Nvm, after hours looking then posting this, realised it was because I was remapping CTRL-[
which in neovim is equivalent to <Esc>
. Going to get more coffee now.
... I was remapping
CTRL-[
which in neovim is equivalent to<Esc>
.
Thanks so much for sharing this! The default <M-[>
outputs a “
for me on Mac so I changed it to <C-[>
. I was so confused when <Esc>
stop working 😅.
After installing copilot.lua, I've lost my custom keymappings for InsertLeave, and it seems I've lost
<Esc>
in particular for leaving insert mode:jk
would exit insert mode to normal, mapped to<Esc>
<C-s>
would exit insert mode to normal<Esc>:<CR>
and write to file (now it literally types out:w<CR>
)I haven't written this anywhere in my copilot config that I can see, and I can fix all of these by changing
<Esc>
to<C-c>
in my mappings, but I was wondering if anyone could shed some light as to why<Esc>
has stopped working? Reading the docs there wasn't any mention of this.