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