Skip to content

Commit

Permalink
Add nixvimWithOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Jun 28, 2024
1 parent 60a249d commit cbdb712
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,18 @@
};
} // flake-utils.lib.eachDefaultSystem (system: {
packages = {
nixvim = nixvim.legacyPackages.${system}.makeNixvimWithModule {
nixvimWithOptions = { pkgs, options ? { } } : nixvim.legacyPackages.${system}.makeNixvimWithModule {
module = { config, lib, pkgs, ... }: {
imports = [
(mkLsp { inherit config lib pkgs; } (angularLsp { inherit pkgs; }))
./modules
options
];
};
inherit pkgs;
};

nixvim = self.packages.${system}.nixvimWithOptions {
inherit (nixpkgs.legacyPackages.${system}) pkgs;
};

Expand Down

0 comments on commit cbdb712

Please sign in to comment.