mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-02 00:55:54 +00:00
init
This commit is contained in:
parent
4b868d0de6
commit
94003faec6
2 changed files with 34 additions and 10 deletions
|
|
@ -92,8 +92,10 @@ inputs: {
|
|||
extraLuaPackages = ps: map (x: ps.${x}) vimOptions.luaPackages;
|
||||
extraPython3Packages = ps: map (x: ps.${x}) vimOptions.python3Packages;
|
||||
|
||||
extraWrapperArgs =
|
||||
concatStringsSep " " (optional (vimOptions.extraPackages != []) ''--prefix PATH : "${makeBinPath vimOptions.extraPackages}"'');
|
||||
extraWrapperArgs = concatStringsSep " " (optional (vimOptions.extraPackages != []) ''
|
||||
--unset XDG_DATA_DIRS \
|
||||
--prefix PATH : "${makeBinPath vimOptions.extraPackages}"
|
||||
'');
|
||||
|
||||
# wrap user's desired neovim package with the desired neovim configuration
|
||||
# using wrapNeovimUnstable and makeNeovimConfig from nixpkgs.
|
||||
|
|
@ -119,6 +121,8 @@ in {
|
|||
inherit (module) options config;
|
||||
inherit (module._module.args) pkgs;
|
||||
|
||||
# expose wrapped neovim-package
|
||||
neovim = neovim-wrapped;
|
||||
# expose wrapped neovim package
|
||||
neovim = neovim-wrapped.overrideAttrs (old: {
|
||||
generatedWrapperArgs = (old.generatedWrapperArgs or []) ++ ["--set" "NVIM_APPNAME" "nvf"];
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue