opencode size

This commit is contained in:
hlstwizard 2026-03-30 09:06:40 +08:00
parent ad28ce231d
commit 5ccdba3fac
1 changed files with 17 additions and 1 deletions

View File

@ -27,7 +27,23 @@ return {
config = function() config = function()
---@type opencode.Opts ---@type opencode.Opts
vim.g.opencode_opts = { vim.g.opencode_opts = {
-- Your configuration, if any; goto definition on the type or field for details server = {
start = function()
require("opencode.terminal").open("opencode --port", {
split = "right",
width = math.max(40, math.floor(vim.o.columns * 0.25)),
})
end,
stop = function()
require("opencode.terminal").close()
end,
toggle = function()
require("opencode.terminal").toggle("opencode --port", {
split = "right",
width = math.max(40, math.floor(vim.o.columns * 0.25)),
})
end,
},
} }
vim.o.autoread = true -- Required for `opts.events.reload` vim.o.autoread = true -- Required for `opts.events.reload`