Skip to content

Commit de4e46e

Browse files
committed
refactor: remove comment add types
1 parent 75fe839 commit de4e46e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lua/copilot/panel/init.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,11 @@ local panel = {
4444
ratio = 0.4,
4545
},
4646

47+
---@type boolean
4748
auto_refresh = false,
4849
keymap = {},
50+
---@type boolean
51+
keymaps_set = false,
4952
}
5053

5154
---@param text string

lua/copilot/suggestion/init.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ local function set_keymap(keymap)
121121
if keymap.accept then
122122
vim.keymap.set("i", keymap.accept, function()
123123
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
125124
if (config.suggestion.trigger_on_accept and not ctx.first) or M.is_visible() then
126125
M.accept()
127126
else

0 commit comments

Comments
 (0)