config/lib/mkNeovim.nix

26 lines
505 B
Nix
Raw Normal View History

{ self, inputs }:
user: pkgs:
2025-05-12 15:19:01 -07:00
let
darwin = pkgs.lib.strings.hasSuffix "-darwin" pkgs.system;
2025-05-12 15:19:01 -07:00
host = {
inherit darwin;
linux = !darwin;
};
userDir = ../users + "/${user}";
userConfig = import (userDir + "/user.nix");
in
(inputs.nvf.lib.neovimConfiguration {
inherit pkgs;
2025-05-12 15:19:01 -07:00
modules = builtins.filter (f: f != null) [
(../users + ("/" + user + "/vim.nix"))
2025-05-12 15:19:01 -07:00
../modules/neovim
];
extraSpecialArgs = {
inherit host;
flake = self;
2025-05-12 15:19:01 -07:00
user = userConfig;
};
}).neovim