mirror of
https://github.com/zoriya/flake.git
synced 2025-12-06 06:36:19 +00:00
55 lines
845 B
Lua
55 lines
845 B
Lua
return {
|
|
{
|
|
"codecompanion",
|
|
keys = {
|
|
{
|
|
"<leader>l",
|
|
"<cmd>CodeCompanionChat Toggle<cr>",
|
|
desc = "Copilot",
|
|
mode = { "n", "v" },
|
|
}
|
|
},
|
|
opts = {
|
|
display = {
|
|
diff = {
|
|
enabled = false,
|
|
},
|
|
chat = {
|
|
window = {
|
|
opts = {
|
|
conceallevel = 3,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
strategies = {
|
|
chat = {
|
|
adapter = "copilot",
|
|
start_in_insert_mode = true,
|
|
keymaps = {
|
|
send = {
|
|
modes = { n = "<C-s>", i = "<C-s>" },
|
|
},
|
|
close = {
|
|
modes = { n = "q", i = "<C-d>" },
|
|
},
|
|
},
|
|
tools = {
|
|
opts = {
|
|
auto_submit_success = true,
|
|
auto_submit_errors = true,
|
|
},
|
|
|
|
}
|
|
},
|
|
inline = {
|
|
adapter = "copilot",
|
|
},
|
|
},
|
|
},
|
|
after = function(plug)
|
|
require("codecompanion").setup(plug.opts)
|
|
end,
|
|
},
|
|
}
|