We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cae2dc commit 52c4092Copy full SHA for 52c4092
lua/opencode/core.lua
@@ -47,6 +47,10 @@ function M.open(opts)
47
48
local are_windows_closed = state.windows == nil
49
50
+ if not require('opencode.ui.ui').is_opencode_focused() then
51
+ require('opencode.context').load()
52
+ end
53
+
54
if are_windows_closed then
55
state.windows = ui.create_windows()
56
end
lua/opencode/ui/ui.lua
@@ -83,7 +83,6 @@ function M.create_windows()
83
local autocmds = require('opencode.ui.autocmds')
84
85
if not require('opencode.ui.ui').is_opencode_focused() then
86
- require('opencode.context').load()
87
state.last_code_win_before_opencode = vim.api.nvim_get_current_win()
88
state.current_code_buf = vim.api.nvim_get_current_buf()
89
0 commit comments