File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 4242
4343function M .toggle (new_session )
4444 if state .windows == nil then
45- local focus = state .last_focused_opencode_window or ' input'
46-
45+ local focus = state .last_focused_opencode_window or ' input' --- @cast focus ' input' | ' output'
4746 core .open ({ new_session = new_session == true , focus = focus , start_insert = false })
4847 else
4948 M .close ()
5251
5352function M .toggle_focus (new_session )
5453 if not ui .is_opencode_focused () then
55- local focus = state .last_focused_opencode_window or ' input'
54+ local focus = state .last_focused_opencode_window or ' input' --- @cast focus ' input ' | ' output '
5655 core .open ({ new_session = new_session == true , focus = focus })
5756 else
5857 ui .return_to_last_code_win ()
@@ -1146,8 +1145,8 @@ M.commands = {
11461145--- @return OpencodeSlashCommand[]
11471146function M .get_slash_commands ()
11481147 local commands = vim .tbl_filter (function (cmd )
1149- return cmd .slash_cmd and cmd .slash_cmd ~= ' '
1150- end , M .commands )
1148+ return cmd .slash_cmd and cmd .slash_cmd ~= ' ' or false
1149+ end , M .commands ) --[[ @as OpencodeSlashCommand[] ]]
11511150
11521151 local user_commands = require (' opencode.config_file' ).get_user_commands ()
11531152 if user_commands then
Original file line number Diff line number Diff line change 7575
7676--- @class OpencodeCompletionFileSourcesConfig
7777--- @field enabled boolean
78- --- @field preferred_cli_tool ' fd' | ' fdfind' | ' rg' | ' git'
78+ --- @field preferred_cli_tool ' server ' | ' fd' | ' fdfind' | ' rg' | ' git'
7979--- @field ignore_patterns string[]
8080--- @field max_files number
8181--- @field max_display_length number
You can’t perform that action at this time.
0 commit comments