a dotfile but it's really big
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

opencode: fix formatters for go

karitham 0862e443 358f70c0

+51
+51
modules/opencode/default.nix
··· 2 2 config, 3 3 lib, 4 4 pkgs, 5 + self', 5 6 ... 6 7 }: 7 8 let ··· 37 38 settings = { 38 39 inherit (cfg) theme; 39 40 default_agent = "orchestrator"; 41 + formatter = { 42 + nixfmt = { 43 + command = [ 44 + "nixfmt" 45 + "-s" 46 + "-w" 47 + "120" 48 + "$FILE" 49 + ]; 50 + extensions = [ ".nix" ]; 51 + }; 52 + gofmt = { 53 + disabled = true; 54 + }; 55 + goimports = { 56 + command = [ 57 + "goimports" 58 + "-w" 59 + "$FILE" 60 + ]; 61 + extensions = [ ".go" ]; 62 + }; 63 + sql-formatter = { 64 + command = [ 65 + "sql-formatter" 66 + "-c" 67 + (builtins.toJSON { 68 + keywordCase = "upper"; 69 + functionCase = "upper"; 70 + dataTypeCase = "upper"; 71 + identifierCase = "lower"; 72 + language = "postgresql"; 73 + expressionWidth = 80; 74 + tabWidth = 2; 75 + }) 76 + "$FILE" 77 + ]; 78 + extensions = [ ".sql" ]; 79 + }; 80 + topiary-nu = { 81 + command = [ 82 + "${lib.getExe self'.packages.topiary-nu}" 83 + "format" 84 + "--language" 85 + "nu" 86 + "$FILE" 87 + ]; 88 + extensions = [ ".nu" ]; 89 + }; 90 + }; 40 91 permission = { 41 92 todoread = "deny"; 42 93 todowrite = "deny";