mirror of
https://github.com/zoriya/flake.git
synced 2026-06-25 02:49:13 +00:00
Add gL binding
This commit is contained in:
@@ -11,22 +11,35 @@ return {
|
||||
keys = {
|
||||
{
|
||||
"<leader>l",
|
||||
function() require("opencode").toggle() end,
|
||||
function()
|
||||
require("opencode").toggle()
|
||||
end,
|
||||
desc = "Opencode",
|
||||
mode = { "n", "v" },
|
||||
},
|
||||
{
|
||||
|
||||
"gl",
|
||||
function() return require("opencode").operator("@this ") end,
|
||||
function()
|
||||
return require("opencode").operator("@this ")
|
||||
end,
|
||||
desc = "Add range to opencode",
|
||||
mode = { "n", "x" },
|
||||
},
|
||||
{
|
||||
"gll",
|
||||
function() return require("opencode").operator("@this ") .. "_" end,
|
||||
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"
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user