Open oxysoft opened 2 months ago
Edit mode exits automatically after a few seconds and it appears that the request goes through even though I didn't press c-s. Seems to have nothing to do with the startinsert command, simply AvanteEdit will do it, but this is my use case.
vim.keymap.set("v", "C", function() vim.cmd('AvanteEdit') vim.cmd('startinsert') end, { noremap = true })
No response
nvim -v NVIM v0.10.1 Build type: Release LuaJIT 2.1.1720049189 Run "nvim -V1 -v" for more info
This is more of an usage, not a bug.
Try this
vim.keymap.set("v", "C", function() require("avante.api").edit() vim.cmd('startinsert') end, { noremap = true })
Describe the bug
Edit mode exits automatically after a few seconds and it appears that the request goes through even though I didn't press c-s. Seems to have nothing to do with the startinsert command, simply AvanteEdit will do it, but this is my use case.
To reproduce
Expected behavior
No response
Environment
Repro
No response