modules: use writeDashBin for helpers

This commit is contained in:
NotAShelf 2024-07-20 15:34:35 +03:00
parent e673552df6
commit 51155a32ed
No known key found for this signature in database
GPG key ID: AF26552424E53993

View file

@ -108,13 +108,13 @@ inputs: {
# Additional helper scripts for printing and displaying nvf configuration # Additional helper scripts for printing and displaying nvf configuration
# in your commandline. # in your commandline.
printConfig = pkgs.writeShellScriptBin "print-nvf-config" '' printConfig = pkgs.writers.writeDashBin "print-nvf-config" ''
cat << EOF cat << EOF
${vimOptions.builtLuaConfigRC} ${vimOptions.builtLuaConfigRC}
EOF EOF
''; '';
printConfigPath = pkgs.writeShellScriptBin "print-nvf-config-path" '' printConfigPath = pkgs.writers.writeDashBin "print-nvf-config-path" ''
realpath ${pkgs.writeTextFile { realpath ${pkgs.writeTextFile {
name = "nvf-init.lua"; name = "nvf-init.lua";
text = vimOptions.builtLuaConfigRC; text = vimOptions.builtLuaConfigRC;