mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
lib/plugins: organise plugin-factory functions in a subdir
This commit is contained in:
parent
6a4b4221c4
commit
88a1c1b46a
4 changed files with 28 additions and 2 deletions
|
@ -20,10 +20,24 @@ lib.makeExtensible (
|
|||
keymaps = call ./keymap-helpers.nix { };
|
||||
lua = call ./to-lua.nix { };
|
||||
modules = call ./modules.nix { inherit flake; };
|
||||
neovim-plugin = call ./neovim-plugin.nix { };
|
||||
options = call ./options.nix { };
|
||||
plugins = call ./plugins { };
|
||||
utils = call ./utils.nix { inherit _nixvimTests; };
|
||||
vim-plugin = call ./vim-plugin.nix { };
|
||||
|
||||
# plugin aliases
|
||||
neovim-plugin = {
|
||||
inherit (self.plugins)
|
||||
extraOptionsOptions
|
||||
mkNeovimPlugin
|
||||
;
|
||||
};
|
||||
vim-plugin = {
|
||||
inherit (self.plugins)
|
||||
mkSettingsOption
|
||||
mkSettingsOptionDescription
|
||||
mkVimPlugin
|
||||
;
|
||||
};
|
||||
|
||||
# Top-level helper aliases:
|
||||
# TODO: deprecate some aliases
|
||||
|
|
12
lib/plugins/default.nix
Normal file
12
lib/plugins/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ call }:
|
||||
let
|
||||
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"
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue