feat: print-nvf-config(-path) -> nvf-print-config(-path)

This commit is contained in:
diniamo 2024-08-05 12:51:03 +02:00
parent 773186d93d
commit afa5e3594b
2 changed files with 5 additions and 5 deletions

View file

@ -140,10 +140,10 @@ configuration formats.
- Add [neo-tree.nvim] as an alternative file-tree plugin. It will be available - Add [neo-tree.nvim] as an alternative file-tree plugin. It will be available
under `vim.filetree.neo-tree`, similar to nvimtree. under `vim.filetree.neo-tree`, similar to nvimtree.
- Add `print-nvf-config` & `print-nvf-config-path` helper scripts to Neovim - Add `nvf-print-config` & `nvf-print-config-path` helper scripts to Neovim
closure. Both of those scripts have been automatically added to your PATH upon closure. Both of those scripts have been automatically added to your PATH upon
using neovimConfig or `programs.nvf.enable`. using neovimConfig or `programs.nvf.enable`.
- `print-nvf-config` will display your `init.lua`, in full. - `nvf-print-config` will display your `init.lua`, in full.
- `print-nvf-config-path` will display the path to _a clone_ of your - `nvf-print-config-path` will display the path to _a clone_ of your
`init.lua`. This is not the path used by the Neovim wrapper, but an `init.lua`. This is not the path used by the Neovim wrapper, but an
identical clone. identical clone.

View file

@ -116,13 +116,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.writers.writeDashBin "print-nvf-config" '' printConfig = pkgs.writers.writeDashBin "nvf-print-config" ''
cat << EOF cat << EOF
${vimOptions.builtLuaConfigRC} ${vimOptions.builtLuaConfigRC}
EOF EOF
''; '';
printConfigPath = pkgs.writers.writeDashBin "print-nvf-config-path" '' printConfigPath = pkgs.writers.writeDashBin "nvf-print-config-path" ''
realpath ${pkgs.writeTextFile { realpath ${pkgs.writeTextFile {
name = "nvf-init.lua"; name = "nvf-init.lua";
text = vimOptions.builtLuaConfigRC; text = vimOptions.builtLuaConfigRC;