neovim: Fix nix phase snippets

This commit is contained in:
Simon Bruder 2021-11-12 13:10:07 +01:00
parent 821367af3f
commit ac92017f96
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -18,9 +18,11 @@ let
+ (builtins.substring 1 (builtins.stringLength name - 1) name); + (builtins.substring 1 (builtins.stringLength name - 1) name);
in in
mkSnippet "${name}Phase" "${name}Phase skeleton" '' mkSnippet "${name}Phase" "${name}Phase skeleton" ''
${name}Phase = '''
runHook pre${upperName} runHook pre${upperName}
$1 $1
runHook post${upperName}'') runHook post${upperName}
''';'')
(builtins.listToAttrs (builtins.listToAttrs
(map (map
(name: lib.nameValuePair name { }) (name: lib.nameValuePair name { })