mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
fix(copilot): create undo point before accepting copilot suggestion when using blink
This commit is contained in:
parent
db8895b518
commit
6e1d0994d9
1 changed files with 1 additions and 0 deletions
|
@ -109,6 +109,7 @@ return {
|
||||||
if cmp.is_in_snippet() then
|
if cmp.is_in_snippet() then
|
||||||
return cmp.accept()
|
return cmp.accept()
|
||||||
elseif require("copilot.suggestion").is_visible() then
|
elseif require("copilot.suggestion").is_visible() then
|
||||||
|
LazyVim.create_undo()
|
||||||
require("copilot.suggestion").accept()
|
require("copilot.suggestion").accept()
|
||||||
else
|
else
|
||||||
return cmp.select_and_accept()
|
return cmp.select_and_accept()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue