opencode size
This commit is contained in:
parent
ad28ce231d
commit
5ccdba3fac
|
|
@ -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`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue