···11+flake.lock
22+33+# for now, we don't want these formatted, but let's consider it in the future?
44+*.json
55+*.md
66+*.yml
77+*.yaml
88+*.jsonc
99+*.json
1010+1111+# causes Go template plugin errors: https://github.com/NiklasPor/prettier-plugin-go-template/issues/120
1212+appview/pages/templates/layouts/repobase.html
1313+appview/pages/templates/repo/tags.html
···11-// Folder-specific settings
22-//
33-// For a full list of overridable settings, and general information on folder-specific settings,
44-// see the documentation: https://zed.dev/docs/configuring-zed#settings-files
55-{
66- "languages": {
77- "HTML": {
88- "prettier": {
99- "format_on_save": false,
1010- "allowed": true,
1111- "parser": "go-template",
1212- "plugins": ["prettier-plugin-go-template"]
1313- }
1414- }
1515- }
1616-}
+6
flake.nix
···106106 pkgsCross-gnu64-pkgsStatic-knot = crossPackages.knot;
107107 pkgsCross-gnu64-pkgsStatic-knot-unwrapped = crossPackages.knot-unwrapped;
108108 pkgsCross-gnu64-pkgsStatic-spindle = crossPackages.spindle;
109109+110110+ prettier-wrapper = pkgs.runCommandLocal "prettier-wrapper" {nativeBuildInputs = [pkgs.makeWrapper];} ''
111111+ mkdir -p "$out/bin"
112112+ makeWrapper ${pkgs.prettier}/bin/prettier "$out/bin/prettier" --add-flags "--plugin=${pkgs.prettier-plugin-go-template}/lib/node_modules/prettier-plugin-go-template/lib/index.js"
113113+ '';
109114 });
110115 defaultPackage = forAllSystems (system: self.packages.${system}.appview);
111116 formatter = forAllSystems (system: nixpkgsFor.${system}.alejandra);
···129134 pkgs.redis
130135 pkgs.coreutils # for those of us who are on systems that use busybox (alpine)
131136 packages'.lexgen
137137+ packages'.prettier-wrapper
132138 ];
133139 shellHook = ''
134140 mkdir -p appview/pages/static