marleyvim/lib/autocmds/default.nix
2024-11-25 20:22:29 -08:00

14 lines
420 B
Nix

_: {
autocmds = rec {
## [String] | String -> String -> [String] | String -> String -> String -> AttrSet
mk = event: group': pattern: callback: desc: let
group = "marleyos_${group'}";
in {
inherit event group pattern callback desc;
};
## [String] | String -> String -> String -> String -> AttrSet
mk' = event: group: callback: desc:
mk event group null callback desc;
};
}