updating libraries 💥

This commit is contained in:
2026-01-11 13:25:41 -05:00
parent ebb7ed7793
commit cefc34cc88
2 changed files with 14 additions and 28 deletions

View File

@@ -50,16 +50,8 @@ end, { desc = "Copilot: Refresh panel" })
keymap.set("n", "<M-CR>", ":Copilot panel<CR>", { desc = "Copilot: Open panel" })
-- Copilot suggestion keymaps (insert mode)
keymap.set("i", "<Tab>", function()
local suggestion = get_copilot_suggestion()
if suggestion and suggestion.is_visible() then
suggestion.accept()
else
-- Feed Tab through so nvim-cmp can handle it for completion menu/snippets
-- Use 't' flag to avoid remapping, 'n' flag for normal mode keycodes
vim.fn.feedkeys(vim.api.nvim_replace_termcodes("<Tab>", true, false, true), "nt")
end
end, { desc = "Copilot: Accept suggestion" })
-- Note: Tab mapping is handled in nvim-cmp.lua to avoid conflicts
-- Tab is reserved exclusively for Copilot inline suggestions
keymap.set("i", "<leader>]", function()
local suggestion = get_copilot_suggestion()