Configure copilot

This commit is contained in:
salomaestro
2024-10-11 23:14:17 +02:00
parent 04ead70e0b
commit e5730e176b
2 changed files with 23 additions and 3 deletions

View File

@@ -76,9 +76,26 @@ return {
{ import = "nvcommunity.completion.copilot" },
{
"copilot.lua",
-- opts = {
-- ...
-- },
cmd = "Copilot",
event = "InsertEnter",
config = function()
require("copilot").setup({
suggestion = {
enabled = true,
auto_trigger = false,
hide_during_completion = true,
debounce = 75,
keymap = {
accept = "<M-a>",
accept_word = false,
accept_line = false,
next = "<M-n>",
prev = "<M-p>",
dismiss = "<M-d>",
},
},
})
end,
},
},