mirror of
https://github.com/zoriya/flake.git
synced 2026-06-24 10:44:21 +00:00
Update stuff
This commit is contained in:
@@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user