Add binding to send data to opencode

This commit is contained in:
2026-02-16 19:43:46 +01:00
parent 19fbfba22f
commit d9e61391f0
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -17,6 +17,10 @@ return {
},
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,
},
}