Skip to content

Commit 1c502c7

Browse files
committed
fix(context): state subscription were not registered
The setup method was not called anymore in init.lua
1 parent a2ab23d commit 1c502c7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lua/opencode/context.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ function M.extract_legacy_tag(tag, text)
452452
end
453453

454454
function M.setup()
455-
state.subscribe({ 'current_code_buf', 'current_context_config', 'opencode_focused' }, function()
455+
state.subscribe({ 'current_code_buf', 'current_context_config', 'is_opencode_focused' }, function(a)
456456
M.load()
457457
end)
458458

lua/opencode/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ function M.setup(opts)
1313
require('opencode.keymap').setup(config.keymap)
1414
require('opencode.ui.completion').setup()
1515
require('opencode.event_manager').setup()
16+
require('opencode.context').setup()
1617
require('opencode.ui.context_bar').setup()
1718
end
1819

0 commit comments

Comments
 (0)