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);
in
mkSnippet "${name}Phase" "${name}Phase skeleton" ''
runHook pre${upperName}
$1
runHook post${upperName}'')
${name}Phase = '''
runHook pre${upperName}
$1
runHook post${upperName}
''';'')
(builtins.listToAttrs
(map
(name: lib.nameValuePair name { })