We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83d7ea0 commit 9d2e376Copy full SHA for 9d2e376
1 file changed
lua/custom/plugins/enable/opencode.lua
@@ -25,18 +25,20 @@ return {
25
},
26
27
config = function()
28
+ local opencode_cmd = [[zsh -ic 'opencode --port']]
29
+
30
---@type opencode.Opts
31
vim.g.opencode_opts = {
32
server = {
33
start = function()
- require('opencode.terminal').open('opencode --port', {
34
+ require('opencode.terminal').open(opencode_cmd, {
35
split = 'right',
36
width = math.max(40, math.floor(vim.o.columns * 0.4)),
37
})
38
end,
39
stop = function() require('opencode.terminal').close() end,
40
toggle = function()
- require('opencode.terminal').toggle('opencode --port', {
41
+ require('opencode.terminal').toggle(opencode_cmd, {
42
43
44
0 commit comments