mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 08:35:53 +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
|
||||
return cmp.accept()
|
||||
elseif require("copilot.suggestion").is_visible() then
|
||||
LazyVim.create_undo()
|
||||
require("copilot.suggestion").accept()
|
||||
else
|
||||
return cmp.select_and_accept()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue