mirror of
https://github.com/zoriya/flake.git
synced 2026-08-15 18:43:42 +00:00
46 lines
707 B
Lua
46 lines
707 B
Lua
---@type opencode.Opts
|
|
vim.g.opencode_opts = {
|
|
provider = {
|
|
enabled = "terminal",
|
|
}
|
|
}
|
|
|
|
return {
|
|
{
|
|
"opencode-nvim",
|
|
keys = {
|
|
{
|
|
"<leader>l",
|
|
function()
|
|
require("opencode").toggle()
|
|
end,
|
|
desc = "Opencode",
|
|
mode = { "n", "v" },
|
|
},
|
|
{
|
|
|
|
"gl",
|
|
function()
|
|
return require("opencode").operator("@this ")
|
|
end,
|
|
desc = "Add range to opencode",
|
|
mode = { "n", "x" },
|
|
},
|
|
{
|
|
"gll",
|
|
function()
|
|
return require("opencode").operator("@this ") .. "_"
|
|
end,
|
|
desc = "Add line to opencode",
|
|
},
|
|
{
|
|
"gL",
|
|
function()
|
|
return require("opencode").prompt("@buffer ")
|
|
end,
|
|
desc = "Add buffer to opencode"
|
|
},
|
|
},
|
|
},
|
|
}
|