todo-comments.nvim
todo-comments.nvim copied to clipboard
Error executing lua callback: Keyboard interrupt
I've installed todo-comments and I'm seeing this error message when I'm going back to normal mode from insert mode using <C-c>
. I'm not really familiar with lua so I wouldn't know how to debug this problem, but I'd like to submit it nevertheless:

The exact actions that I'm performing are:
- Navigate to a code block with
{}
- Execute
ci{
- Immediately try to go back to normal mode using
<C-c>
Previously I had <C-c>
mapped to <Esc>
and I didn't seem to have this problem then.
I just hit another bump, remapping <c-c>
to <Esc>
is actually a very bad idea since it doesn't allow you to quit the buffer that is displayed when using q:
(see last commands). I'm very new to vim so it is still very hard to tell which mappings make sense and which ones don't.
Hello, looks like the same Issue mentioned in Issue #73 and neovim Issue #16416 :thinking:? The mode for your remapping should be the insert mode, right? I have no problems with this and can leave the command history with it.
function Set_Keymap(mode, lhs, rhs)
local opts = { noremap = true, silent = true }
vim.keymap.set(mode, lhs, rhs, opts)
end
Set_Keymap("i", "<C-c>", "<Esc>")
Looks suspiciously like the mentioned issue. Yeah I've just blindly remapped visual and normal mode too, if I only map it to the insert mode it actually looks good :)
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.