mirror of
https://github.com/zoriya/flake.git
synced 2026-08-15 18:43:42 +00:00
Add binding to send data to opencode
This commit is contained in:
@@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user