File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,10 @@ function M.open(opts)
4747
4848 local are_windows_closed = state .windows == nil
4949
50+ if not require (' opencode.ui.ui' ).is_opencode_focused () then
51+ require (' opencode.context' ).load ()
52+ end
53+
5054 if are_windows_closed then
5155 -- Check if whether prompting will be allowed
5256 local context_module = require (' opencode.context' )
Original file line number Diff line number Diff line change @@ -83,7 +83,6 @@ function M.create_windows()
8383 local autocmds = require (' opencode.ui.autocmds' )
8484
8585 if not require (' opencode.ui.ui' ).is_opencode_focused () then
86- require (' opencode.context' ).load ()
8786 state .last_code_win_before_opencode = vim .api .nvim_get_current_win ()
8887 state .current_code_buf = vim .api .nvim_get_current_buf ()
8988 end
You can’t perform that action at this time.
0 commit comments