Skip to content

feat: add PartialClaudeCodeConfig type for better configuration handling #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: thomask33/feat_add_on_new_file_reject_option_to_control_empty_buffer_behavior
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dev-config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ return {
},

-- Development configuration - all options shown with defaults commented out
---@type ClaudeCodeConfig
---@type PartialClaudeCodeConfig
opts = {
-- Server Configuration
-- port_range = { min = 10000, max = 65535 }, -- WebSocket server port range
Expand Down
2 changes: 1 addition & 1 deletion lua/claudecode/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ function M.send_at_mention(file_path, start_line, end_line, context)
end

---Set up the plugin with user configuration
---@param opts ClaudeCodeConfig|nil Optional configuration table to override defaults.
---@param opts PartialClaudeCodeConfig|nil Optional configuration table to override defaults.
---@return table module The plugin module
function M.setup(opts)
opts = opts or {}
Expand Down
2 changes: 2 additions & 0 deletions lua/claudecode/types.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@
---@field enable_broadcast_debouncing_in_tests? boolean
---@field terminal ClaudeCodeTerminalConfig?

---@class (partial) PartialClaudeCodeConfig: ClaudeCodeConfig

-- Server interface for main module
---@class ClaudeCodeServerFacade
---@field start fun(config: ClaudeCodeConfig, auth_token: string|nil): (success: boolean, port_or_error: number|string)
Expand Down