Repository navigation
Replies: 1 comment 2 replies
opts = {
picker = {
actions = {
stopinsert = function(picker)
picker.input:stopinsert() -- vim.cmd.stopinsert()
end,
},
win = {
input = {
keys = {
['<Esc>'] = { 'close', mode = { 'i', 'n' } },
['<M-e>'] = { 'stopinsert', mode = { 'i', 'n' } }, |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have configured the picker to close on esc key with the recommended config from the docs.
And I have set a keymap to enter normal mode everywhere. I prefer closing pickers, input fields etc with
<ESC>My keymap:
keymap.set("t", "<A-e>", "<C-\\><C-n>", opts)Pressing
<ESC>closes the picker, but pressing<A-e>does so too. How can I enter normal mode without closing the picker and still have<ESC>close the picker? I also tried mapping<ESC>to"cancel"but had the same effect.All reactions