1
0
Fork 0

nvim: fix copilot ft, switch to toggle binding

This commit is contained in:
Luca Bilke 2024-10-08 10:33:03 +02:00
parent 0d613f6adf
commit 6334ae5030

View file

@ -4,14 +4,19 @@ return {
{
"zbirenbaum/copilot.lua",
optional = true,
filetypes = {
yaml = true,
[""] = false,
opts = {
filetypes = {
yaml = true,
[""] = false,
},
},
keys = {
{ "<leader>a", "", desc = "+ai", mode = { "n" } },
{ "<leader>at", "<CMD>Copilot detach<CR>", desc = "Detach (Copilot)" },
{ "<leader>ac", "<CMD>Copilot attach<CR>", desc = "Attach (Copilot)" },
{
"<leader>at",
"<CMD>Copilot toggle<CR>",
desc = "Toggle (Copilot)",
},
},
},
{