Skip to content

Commit e1cf7a5

Browse files
authored
feat: hot reload file buffers (#36)
1 parent c65fd75 commit e1cf7a5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lua/goose/core.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ function M.run(prompt, opts)
7575
M.after_send()
7676
end,
7777
on_output = function(output)
78+
-- Reload all modified file buffers
79+
vim.cmd('checktime')
80+
7881
-- for new sessions, session data can only be retrieved after running the command, retrieve once
7982
if not state.active_session and state.new_session_name then
8083
state.active_session = session.get_by_name(state.new_session_name)

0 commit comments

Comments
 (0)