Skip to content

Commit 696920c

Browse files
committed
feat: add PartialClaudeCodeConfig type for better configuration handling
Change-Id: I7e94c9ebbace3654b1f1cfad8b0e3f3899c786cb Signed-off-by: Thomas Kosiewski <[email protected]>
1 parent 00cc3d9 commit 696920c

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

dev-config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ return {
4040
},
4141

4242
-- Development configuration - all options shown with defaults commented out
43-
---@type ClaudeCodeConfig
43+
---@type PartialClaudeCodeConfig
4444
opts = {
4545
-- Server Configuration
4646
-- port_range = { min = 10000, max = 65535 }, -- WebSocket server port range

lua/claudecode/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ function M.send_at_mention(file_path, start_line, end_line, context)
287287
end
288288

289289
---Set up the plugin with user configuration
290-
---@param opts ClaudeCodeConfig|nil Optional configuration table to override defaults.
290+
---@param opts PartialClaudeCodeConfig|nil Optional configuration table to override defaults.
291291
---@return table module The plugin module
292292
function M.setup(opts)
293293
opts = opts or {}

lua/claudecode/types.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@
107107
---@field enable_broadcast_debouncing_in_tests? boolean
108108
---@field terminal ClaudeCodeTerminalConfig?
109109

110+
---@class (partial) PartialClaudeCodeConfig: ClaudeCodeConfig
111+
110112
-- Server interface for main module
111113
---@class ClaudeCodeServerFacade
112114
---@field start fun(config: ClaudeCodeConfig, auth_token: string|nil): (success: boolean, port_or_error: number|string)

0 commit comments

Comments
 (0)