Update stuff

This commit is contained in:
2026-02-24 10:17:03 +01:00
parent d9e61391f0
commit fae02bcda8
2 changed files with 50 additions and 44 deletions
+20 -14
View File
@@ -1,3 +1,10 @@
---@type opencode.Opts
vim.g.opencode_opts = {
provider = {
enabled = "terminal",
}
}
return {
{
"opencode-nvim",
@@ -7,20 +14,19 @@ return {
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",
},
},
---@type opencode.Opts
opts = {
provider = {
enabled = "terminal",
}
},
after = function(plug)
vim.g.opencode_opts = plug.opts
vim.keymap.set({ "n", "x" }, "gl", function() return require("opencode").operator("@this ") end,
{ desc = "Add range to opencode", expr = true })
vim.keymap.set("n", "gll", function() return require("opencode").operator("@this ") .. "_" end,
{ desc = "Add line to opencode", expr = true })
end,
},
}