2024-05-18 20:00:18 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: let
|
2024-05-20 21:15:16 +02:00
|
|
|
cfg = config.myConfig.shell.bat;
|
2024-05-18 20:00:18 +02:00
|
|
|
in {
|
2024-05-20 21:15:16 +02:00
|
|
|
options.myConfig.shell.bat = {
|
|
|
|
enable = lib.mkEnableOption "bat, a cat replacement with syntax highlighting";
|
2024-05-18 20:00:18 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
programs.bat = {
|
|
|
|
enable = true;
|
|
|
|
config = {
|
|
|
|
map-syntax = ["*.ino:C++"];
|
|
|
|
theme = "Solarized (dark)";
|
|
|
|
style = "numbers,changes,header-filename,header-filesize";
|
|
|
|
};
|
2024-03-09 10:22:44 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|