Skip to content

Commit a2ab23d

Browse files
committed
fix(context): toggle items was not working anymore
1 parent 34922e5 commit a2ab23d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lua/opencode/context.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ function M.is_context_enabled(context_key)
5555
local is_enabled = vim.tbl_get(config, 'context', context_key, 'enabled')
5656
local is_state_enabled = vim.tbl_get(state, 'current_context_config', context_key, 'enabled')
5757

58-
return is_state_enabled ~= nil and is_state_enabled or is_enabled
58+
if is_state_enabled ~= nil then
59+
return is_state_enabled
60+
else
61+
return is_enabled
62+
end
5963
end
6064

6165
function M.get_diagnostics(buf)

0 commit comments

Comments
 (0)