Skip to content

Commit

Permalink
make sure the runtimepath is set in NixOS 22.05 (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwarfmaster committed Oct 7, 2022
1 parent 08f3a9d commit 1fe6ab0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions modules/output.nix
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,17 @@ in

normalizedPlugins = map (x: defaultPlugin // (if x ? plugin then x else { plugin = x; })) config.extraPlugins;

neovimConfig = pkgs.neovimUtils.makeNeovimConfig {
neovimConfig = pkgs.neovimUtils.makeNeovimConfig ({
inherit customRC;
plugins = normalizedPlugins;
};
}
# Necessary to make sure the runtime path is set properly in NixOS 22.05,
# or more generally before the commit:
# cda1f8ae468 - neovim: pass packpath via the wrapper
// optionalAttrs (functionArgs pkgs.neovimUtils.makeNeovimConfig ? configure) {
configure.packages =
{ nixvim = { start = map (x: x.plugin) normalizedPlugins; opt = []; }; };
});

extraWrapperArgs = optionalString (config.extraPackages != [ ])
''--prefix PATH : "${makeBinPath config.extraPackages}"'';
Expand Down

0 comments on commit 1fe6ab0

Please sign in to comment.