mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-09 22:55:58 +01:00
Compare commits
No commits in common. "cc639deee394fba107f3d05a1094e4f8ffc9f5b7" and "8f1dda4446185e4db373e8dbcafde72f80c26518" have entirely different histories.
cc639deee3
...
8f1dda4446
2 changed files with 2 additions and 35 deletions
|
@ -139,11 +139,3 @@ configuration formats.
|
|||
|
||||
- Add [neo-tree.nvim] as an alternative file-tree plugin. It will be available
|
||||
under `vim.filetree.neo-tree`, similar to nvimtree.
|
||||
|
||||
- Add `print-nvf-config` & `print-nvf-config-path` helper scripts to Neovim
|
||||
closure. Both of those scripts have been automatically added to your PATH upon
|
||||
using neovimConfig or `programs.nvf.enable`.
|
||||
- `print-nvf-config` will display your `init.lua`, in full.
|
||||
- `print-nvf-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
|
||||
identical clone.
|
||||
|
|
|
@ -113,35 +113,10 @@ inputs: {
|
|||
inherit (vimOptions) viAlias vimAlias withRuby withNodeJs withPython3;
|
||||
inherit extraLuaPackages extraPython3Packages;
|
||||
};
|
||||
|
||||
# Additional helper scripts for printing and displaying nvf configuration
|
||||
# in your commandline.
|
||||
printConfig = pkgs.writers.writeDashBin "print-nvf-config" ''
|
||||
cat << EOF
|
||||
${vimOptions.builtLuaConfigRC}
|
||||
EOF
|
||||
'';
|
||||
|
||||
printConfigPath = pkgs.writers.writeDashBin "print-nvf-config-path" ''
|
||||
realpath ${pkgs.writeTextFile {
|
||||
name = "nvf-init.lua";
|
||||
text = vimOptions.builtLuaConfigRC;
|
||||
}}
|
||||
'';
|
||||
in {
|
||||
inherit (module) options config;
|
||||
inherit (module._module.args) pkgs;
|
||||
|
||||
# Expose wrapped neovim-package for userspace
|
||||
# or module consumption.
|
||||
neovim = pkgs.symlinkJoin {
|
||||
name = "nvf-with-helpers";
|
||||
paths = [neovim-wrapped printConfig printConfigPath];
|
||||
postBuild = "echo helpers added";
|
||||
|
||||
meta = {
|
||||
description = "Wrapped version of Neovim with additional helper scripts";
|
||||
mainProgram = "nvim";
|
||||
};
|
||||
};
|
||||
# expose wrapped neovim-package
|
||||
neovim = neovim-wrapped;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue