neovim: Fix nix phase snippets
This commit is contained in:
parent
821367af3f
commit
ac92017f96
|
@ -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 { })
|
||||||
|
|
Loading…
Reference in a new issue