Skip to content

Commit 428a046

Browse files
committed
chore(types): fix config typings
1 parent c1d3f9e commit 428a046

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

lua/opencode/config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,4 +305,4 @@ return setmetatable(M, {
305305
__tostring = function(_)
306306
return vim.inspect(M.values)
307307
end,
308-
})
308+
}) --[[@as OpencodeConfig]]

lua/opencode/context.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
-- Gathers editor context
22

33
local util = require('opencode.util')
4-
local config = require('opencode.config') --[[@as OpencodeConfig]]
4+
local config = require('opencode.config')
55
local state = require('opencode.state')
66

77
local M = {}

lua/opencode/types.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@
5353
---@field share? SessionShareInfo
5454

5555
---@class OpencodeKeymapEntry
56-
---@field [1] string # Function nam
57-
56+
---@field [1] string # Function name
5857
---@field mode? string|string[] # Mode(s) for the keymap
5958
---@field desc? string # Keymap description
6059

@@ -122,7 +121,7 @@
122121
---@field diagnostics { enabled:boolean, info: boolean, warning: boolean, error: boolean }
123122
---@field current_file { enabled: boolean }
124123
---@field selection { enabled: boolean }
125-
---@field subagents { enabled: boolean }
124+
---@field agents { enabled: boolean }
126125

127126
---@class OpencodeDebugConfig
128127
---@field enabled boolean

0 commit comments

Comments
 (0)