lib/plugins: separate main factory functions

This commit is contained in:
Matt Sturgeon 2024-12-18 21:05:05 +00:00
parent 88a1c1b46a
commit ec97297fd5
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
6 changed files with 370 additions and 352 deletions

View file

@ -1,12 +1,12 @@
{ call }:
let
{
call,
lib,
}:
{
neovim = call ./neovim.nix { };
vim = call ./vim.nix { };
in
# TODO: be a bit more deliberate
# NOTE: remove the overridable stuff from `call`;
# I don't want to think about how (a // b) interacts with them yet
builtins.removeAttrs (neovim // vim) [
"override"
"overrideDerivation"
]
# Aliases
inherit (lib.nixvim.plugins.neovim) mkNeovimPlugin;
inherit (lib.nixvim.plugins.vim) mkVimPlugin;
}