mirror of
https://github.com/nix-community/home-manager.git
synced 2026-12-06 04:40:17 +00:00
Add programs.opencode.cli for OpenCode 2's global cli.json, while retaining programs.opencode.tui for OpenCode 1. Support mutable CLI configuration through OPENCODE_CLI_CONFIG_CONTENT, leaving cli.json writable by OpenCode. Add validation against the configured package's CLI schema and warn when CLI or TUI settings do not match the package version.
70 lines
1.2 KiB
JSON
70 lines
1.2 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"type": "object",
|
|
"properties": {
|
|
"$schema": {
|
|
"type": "string",
|
|
"format": "uri"
|
|
},
|
|
"keybinds": {
|
|
"type": "object",
|
|
"properties": {
|
|
"leader": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"plugins": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"scroll": {
|
|
"type": "object",
|
|
"properties": {
|
|
"acceleration": {
|
|
"type": "boolean"
|
|
},
|
|
"speed": {
|
|
"type": "number",
|
|
"minimum": 0.001
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"tabs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"mode": {
|
|
"enum": [
|
|
"auto",
|
|
"on",
|
|
"off"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"theme": {
|
|
"type": "object",
|
|
"properties": {
|
|
"mode": {
|
|
"enum": [
|
|
"system",
|
|
"dark",
|
|
"light"
|
|
]
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": []
|
|
}
|