Skip to content

Commit d17b4da

Browse files
committed
chore(formatter): already have config
1 parent 49d67c0 commit d17b4da

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lua/opencode/ui/formatter.lua

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ function M._handle_permission_request(output, part)
2727
end
2828

2929
function M._format_permission_request(output)
30-
local config_mod = require('opencode.config')
3130
local keys
3231

3332
if require('opencode.ui.ui').is_opencode_focused() then
@@ -38,9 +37,9 @@ function M._format_permission_request(output)
3837
}
3938
else
4039
keys = {
41-
config_mod.get_key_for_function('editor', 'permission_accept'),
42-
config_mod.get_key_for_function('editor', 'permission_accept_all'),
43-
config_mod.get_key_for_function('editor', 'permission_deny'),
40+
config.get_key_for_function('editor', 'permission_accept'),
41+
config.get_key_for_function('editor', 'permission_accept_all'),
42+
config.get_key_for_function('editor', 'permission_deny'),
4443
}
4544
end
4645

0 commit comments

Comments
 (0)