tangled
alpha
login
or
join now
rockorager.dev
/
lsr
60
fork
atom
ls but with io_uring
60
fork
atom
overview
issues
9
pulls
1
pipelines
icons: add nix icon
rockorager.dev
10 months ago
0952f914
8f4e609a
verified
This commit was signed with the committer's
known signature
.
rockorager.dev
SSH Key Fingerprint:
SHA256:qn/Fjy7CpbcogGEPB14Y53hLnQleZNFY9lkQnuudFLs=
+7
-1
1 changed file
expand all
collapse all
unified
split
src
main.zig
+7
-1
src/main.zig
···
974
974
const json: Icon = .{ .icon = "", .color = Options.Colors.blue };
975
975
const lua: Icon = .{ .icon = "", .color = Options.Colors.blue };
976
976
const markdown: Icon = .{ .icon = "", .color = "" };
977
977
+
const nix: Icon = .{ .icon = "", .color = "\x1b[38:2:127:185:228m" };
977
978
const python: Icon = .{ .icon = "", .color = Options.Colors.yellow };
978
979
const rust: Icon = .{ .icon = "", .color = "" };
979
980
const typescript: Icon = .{ .icon = "", .color = Options.Colors.blue };
980
981
const zig: Icon = .{ .icon = "", .color = "\x1b[38:2:247:164:29m" };
981
982
982
982
-
const by_name: std.StaticStringMap(Icon) = .initComptime(.{});
983
983
+
const by_name: std.StaticStringMap(Icon) = .initComptime(.{
984
984
+
.{"flake.lock", Icon.nix},
985
985
+
});
983
986
984
987
const by_extension: std.StaticStringMap(Icon) = .initComptime(.{
985
988
.{ "cjs", Icon.javascript },
986
989
.{ "css", Icon.css },
990
990
+
.{ "drv", Icon.nix },
987
991
.{ "gif", Icon.image },
988
992
.{ "go", Icon.go },
989
993
.{ "html", Icon.html },
···
997
1001
.{ "mjs", Icon.javascript },
998
1002
.{ "mkv", Icon.video },
999
1003
.{ "mp4", Icon.video },
1004
1004
+
.{ "nar", Icon.nix },
1005
1005
+
.{ "nix", Icon.nix },
1000
1006
.{ "png", Icon.image },
1001
1007
.{ "py", Icon.python },
1002
1008
.{ "rs", Icon.rust },