mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 10:35:08 +02:00
parent
f64294f768
commit
57395bcc8a
1 changed files with 6 additions and 0 deletions
|
@ -331,6 +331,12 @@ M.config = function()
|
|||
if is_insert_mode() then -- prevent overwriting brackets
|
||||
confirm_opts.behavior = ConfirmBehavior.Insert
|
||||
end
|
||||
local entry = cmp.get_selected_entry()
|
||||
local is_copilot = entry and entry.source.name == "copilot"
|
||||
if is_copilot then
|
||||
confirm_opts.behavior = ConfirmBehavior.Replace
|
||||
confirm_opts.select = true
|
||||
end
|
||||
if cmp.confirm(confirm_opts) then
|
||||
return -- success, exit early
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue