Skip to content

Commit d3d971e

Browse files
committed
chore(ui): find better way to call render markdown
1 parent 90a732a commit d3d971e

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

lua/opencode/ui/ui.lua

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ function M.scroll_to_bottom()
1717
end)
1818
end)
1919

20+
-- TODO: shouldn't have hardcoded calls to render_markdown,
21+
-- should support user callbacks
2022
vim.defer_fn(function()
2123
renderer.render_markdown()
2224
end, 200)
@@ -200,15 +202,15 @@ end
200202
-- renderer.render_incremental(state.windows, message)
201203
-- end
202204

203-
function M.render_lines(lines)
204-
M.clear_output()
205-
renderer.write_output(state.windows, lines)
206-
renderer.render_markdown()
207-
end
205+
-- function M.render_lines(lines)
206+
-- M.clear_output()
207+
-- renderer.write_output(state.windows, lines)
208+
-- renderer.render_markdown()
209+
-- end
208210

209-
function M.stop_render_output()
210-
renderer.stop()
211-
end
211+
-- function M.stop_render_output()
212+
-- renderer.stop()
213+
-- end
212214

213215
function M.select_session(sessions, cb)
214216
local util = require('opencode.util')

0 commit comments

Comments
 (0)