14 lines
421 B
Nix
14 lines
421 B
Nix
_: {
|
|
autocmds = rec {
|
|
## [String] | String -> String -> [String] | String -> String -> String -> AttrSet
|
|
mk = event: group': pattern: callback: desc: let
|
|
group = "marleyvim_${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;
|
|
};
|
|
}
|