Home/Nixinator: Configure opencode
This commit is contained in:
@ -58,14 +58,69 @@
|
|||||||
|
|
||||||
# Writes opencode.json
|
# Writes opencode.json
|
||||||
settings = {
|
settings = {
|
||||||
plugin = [
|
attachment = {
|
||||||
# https://github.com/griffinmartin/opencode-claude-auth
|
image = {
|
||||||
"opencode-claude-auth@latest"
|
auto_resize = true;
|
||||||
|
max_width = 2000;
|
||||||
|
max_height = 2000;
|
||||||
|
max_base64_bytes = 5242880;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
autoupdate = false;
|
||||||
|
compaction = {
|
||||||
|
auto = true;
|
||||||
|
prune = true;
|
||||||
|
reserved = 10000;
|
||||||
|
};
|
||||||
|
default_agent = "plan";
|
||||||
|
enabled_providers = [
|
||||||
|
"opencode"
|
||||||
|
"opencode-go"
|
||||||
|
"anthropic"
|
||||||
];
|
];
|
||||||
|
formatter = {
|
||||||
|
nixfmt = {
|
||||||
|
disabled = true;
|
||||||
|
};
|
||||||
|
alejandra = {
|
||||||
|
command = ["alejandra" "$FILE"];
|
||||||
|
extensions = [".nix"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
lsp = true;
|
||||||
|
permission = {
|
||||||
|
"*" = "ask";
|
||||||
|
"read" = "allow";
|
||||||
|
"grep" = "allow";
|
||||||
|
"glob" = "allow";
|
||||||
|
"lsp" = "allow";
|
||||||
|
"question" = "allow";
|
||||||
|
};
|
||||||
|
plugin = [
|
||||||
|
"opencode-claude-auth@latest" # https://github.com/griffinmartin/opencode-claude-auth
|
||||||
|
"@tarquinen/opencode-dcp@latest" # better compacting
|
||||||
|
"@slkiser/opencode-quota"
|
||||||
|
];
|
||||||
|
share = "disabled";
|
||||||
|
shell = "fish";
|
||||||
|
snapshot = false;
|
||||||
|
watcher = {
|
||||||
|
ignore = ["node_modules/**" "dist/**" ".git/**"];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Writes tui.json
|
# Writes tui.json
|
||||||
tui = {};
|
tui = {
|
||||||
|
theme = "system";
|
||||||
|
diff_style = "auto";
|
||||||
|
mouse = true;
|
||||||
|
attention = {
|
||||||
|
enabled = true;
|
||||||
|
notifications = true;
|
||||||
|
sound = true;
|
||||||
|
volume = "0.3";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
agents = {};
|
agents = {};
|
||||||
commands = {};
|
commands = {};
|
||||||
|
|||||||
Reference in New Issue
Block a user