Closed RyanCarrier closed 1 year ago
Would be great to have an option to auto dismiss copilot's suggestion when leaving insert mode.
It already does so.
Let me know if you can reproduce when it doesn't work.
https://github.com/zbirenbaum/copilot.lua/assets/9389452/60d94f83-0650-46ba-bf5f-3250f15c5f82
Only lazy and copilot installed in this example, up to date
What happens when you run :redraw
the the virtual text stays back after leaving insert mode? Does it disappear?
Virtual text still stays after running :redraw
Just to make sure, is it still the same if you do :redraw!
(notice the bang at the end, it redraws entire screen).
Also, do you use <C-c>
to exit insert mode by any chance?
No change with :redraw! Yes I do use C-c....
<C-c>
does not trigger the InsertLeave
autocmd.
So you should:
<C-c>
to <C-[>
or <Esc>
(can have unforeseen consequences)<C-[>
or <Esc>
for leaving insert mode<C-c>
to also call require("copilot.suggestion").dismiss()
Would be great to have an option to auto dismiss copilot's suggestion when leaving insert mode.
Sometimes it will leave artifacts as I'm moving around making it hard to see what's written/what's underneath. Going into and our of insert mode solves it, (or dismissing manually)