mirror of
https://github.com/zoriya/flake.git
synced 2026-08-15 18:43:42 +00:00
Configure opencode
This commit is contained in:
@@ -1,54 +0,0 @@
|
||||
return {
|
||||
{
|
||||
"codecompanion",
|
||||
keys = {
|
||||
{
|
||||
"<leader>l",
|
||||
"<cmd>CodeCompanionChat Toggle<cr>",
|
||||
desc = "Copilot",
|
||||
mode = { "n", "v" },
|
||||
}
|
||||
},
|
||||
opts = {
|
||||
display = {
|
||||
diff = {
|
||||
enabled = false,
|
||||
},
|
||||
chat = {
|
||||
window = {
|
||||
opts = {
|
||||
conceallevel = 3,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
interactions = {
|
||||
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,
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
return {
|
||||
{
|
||||
"opencode-nvim",
|
||||
keys = {
|
||||
{
|
||||
"<leader>l",
|
||||
function() require("opencode").toggle() end,
|
||||
desc = "Opencode",
|
||||
mode = { "n", "v" },
|
||||
}
|
||||
},
|
||||
---@type opencode.Opts
|
||||
opts = {
|
||||
provider = {
|
||||
enabled = "terminal",
|
||||
}
|
||||
},
|
||||
after = function(plug)
|
||||
vim.g.opencode_opts = plug.opts
|
||||
end,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user