mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-05 18:45:22 +02:00
lib/plugins: separate main factory functions
This commit is contained in:
parent
88a1c1b46a
commit
ec97297fd5
6 changed files with 370 additions and 352 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue