-
Notifications
You must be signed in to change notification settings - Fork 35
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
Exit on <C-c> only when insert_only is true #25
Conversation
I actually think that au FileType DressingInput lua vim.api.nvim_buf_del_keymap(0, "i", "<C-c>"); vim.api.nvim_buf_set_keymap(0, "i", "<C-c>", "<Esc>", {}) And you can of course put that in a |
Oh, right! I had forgot that I had that behavior specifically disabled in Telescope. Sorry about that, and thank you for the autocommand, though I cannot get it to work! :(
I'm using 0.6.1. |
Ah, it seems that the file type is set before the keymaps are applied, so |
Derp, I made that change when I tested locally, but I forgot to push it up! Let me know if you encounter any other issues with it |
Thanks, now it works just fine! :) |
Hi, thanks for a great plugin! I just started using it and I like it a lot.
The only thing bothering me is that I use
<C-c>
instead of<Esc>
normally to exit insert mode. With this plugin, I tend to close theinput
window when I really want to enter normal mode. This change treats<C-c>
the same as<Esc>
.Context
☝️
Description
Map
<C-c>
the same as<Esc>
forinput,
including wheninsert_only
is enabled.Test Plan
None.