We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75fe839 commit de4e46eCopy full SHA for de4e46e
lua/copilot/panel/init.lua
@@ -44,8 +44,11 @@ local panel = {
44
ratio = 0.4,
45
},
46
47
+ ---@type boolean
48
auto_refresh = false,
49
keymap = {},
50
51
+ keymaps_set = false,
52
}
53
54
---@param text string
lua/copilot/suggestion/init.lua
@@ -121,7 +121,6 @@ local function set_keymap(keymap)
121
if keymap.accept then
122
vim.keymap.set("i", keymap.accept, function()
123
local ctx = get_ctx()
124
- -- If we trigger on accept but the suggestion has not been triggered yet, we let it go through so it does
125
if (config.suggestion.trigger_on_accept and not ctx.first) or M.is_visible() then
126
M.accept()
127
else
0 commit comments