mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
lib/plugins: deprecate neovim-plugin
& vim-plugin
aliases
This commit is contained in:
parent
43a3171dec
commit
214731d355
1 changed files with 22 additions and 15 deletions
|
@ -24,21 +24,6 @@ lib.makeExtensible (
|
|||
plugins = call ./plugins { };
|
||||
utils = call ./utils.nix { inherit _nixvimTests; };
|
||||
|
||||
# plugin aliases
|
||||
neovim-plugin = {
|
||||
inherit (self.plugins.neovim)
|
||||
extraOptionsOptions
|
||||
mkNeovimPlugin
|
||||
;
|
||||
};
|
||||
vim-plugin = {
|
||||
inherit (self.plugins.vim)
|
||||
mkSettingsOption
|
||||
mkSettingsOptionDescription
|
||||
mkVimPlugin
|
||||
;
|
||||
};
|
||||
|
||||
# Top-level helper aliases:
|
||||
# TODO: deprecate some aliases
|
||||
|
||||
|
@ -120,4 +105,26 @@ lib.makeExtensible (
|
|||
maintainers = "lib.maintainers";
|
||||
nixvimTypes = "lib.types";
|
||||
}
|
||||
//
|
||||
# TODO: neovim-plugin & vim-plugin aliases deprecated 2024-12-22; internal functions
|
||||
lib.mapAttrs'
|
||||
(scope: names: {
|
||||
name = "${scope}-plugin";
|
||||
value = lib.genAttrs names (
|
||||
name:
|
||||
lib.warn "`${scope}-plugin.${name}` has been moved to `plugins.${scope}.${name}`."
|
||||
self.plugins.${scope}.${name}
|
||||
);
|
||||
})
|
||||
{
|
||||
neovim = [
|
||||
"extraOptionsOptions"
|
||||
"mkNeovimPlugin"
|
||||
];
|
||||
vim = [
|
||||
"mkSettingsOption"
|
||||
"mkSettingsOptionDescription"
|
||||
"mkVimPlugin"
|
||||
];
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue