helpers/vim-plugin/mkVimPlugin: rename 'description' -> 'originalName'

This commit is contained in:
Gaetan Lepage 2024-02-13 23:25:13 +01:00 committed by Gaétan Lepage
parent 6dd2eed613
commit 6a8d6fd005
17 changed files with 18 additions and 22 deletions

View file

@ -9,7 +9,7 @@ with lib; {
maintainers ? [],
imports ? [],
# options
description ? null,
originalName ? name,
package ? null,
options ? {},
settingsOptions ? {},
@ -80,11 +80,7 @@ with lib; {
meta.maintainers = maintainers;
options.${namespace}.${name} =
{
enable = mkEnableOption (
if description == null
then name
else description
);
enable = mkEnableOption originalName;
}
// settingsOption
// packageOption

View file

@ -9,7 +9,7 @@ with lib;
with helpers.vim-plugin;
helpers.vim-plugin.mkVimPlugin config {
name = "copilot-vim";
description = "copilot.vim";
originalName = "copilot.vim";
package = pkgs.vimPlugins.copilot-vim;
globalPrefix = "copilot_";
addExtraConfigRenameWarning = true;

View file

@ -7,7 +7,7 @@
}:
helpers.vim-plugin.mkVimPlugin config {
name = "committia";
description = "committia.vim";
originalName = "committia.vim";
package = pkgs.vimPlugins.committia-vim;
globalPrefix = "committia_";
extraPackages = [pkgs.git];

View file

@ -6,7 +6,7 @@
}:
helpers.vim-plugin.mkVimPlugin config {
name = "fugitive";
description = "vim-fugitive";
originalName = "vim-fugitive";
package = pkgs.vimPlugins.vim-fugitive;
extraPackages = [pkgs.git];

View file

@ -9,7 +9,7 @@ with lib;
with helpers.vim-plugin;
mkVimPlugin config {
name = "ledger";
description = "ledger language features";
originalName = "vim-ledger";
package = pkgs.vimPlugins.vim-ledger;
globalPrefix = "ledger_";
addExtraConfigRenameWarning = true;

View file

@ -9,7 +9,7 @@ with lib;
with helpers.vim-plugin;
mkVimPlugin config {
name = "markdown-preview";
description = "markdown-preview.nvim";
originalName = "markdown-preview.nvim";
package = pkgs.vimPlugins.markdown-preview-nvim;
globalPrefix = "mkdp_";
addExtraConfigRenameWarning = true;

View file

@ -6,7 +6,7 @@
}:
helpers.vim-plugin.mkVimPlugin config {
name = "nix";
description = "vim-nix";
originalName = "vim-nix";
package = pkgs.vimPlugins.vim-nix;
# Possibly add option to disable Treesitter highlighting if this is installed

View file

@ -9,7 +9,7 @@ with lib;
with helpers.vim-plugin;
mkVimPlugin config {
name = "zig";
description = "zig.vim";
originalName = "zig.vim";
package = pkgs.vimPlugins.zig-vim;
globalPrefix = "zig_";
addExtraConfigRenameWarning = true;

View file

@ -9,7 +9,7 @@ with lib;
with helpers.vim-plugin;
mkVimPlugin config {
name = "airline";
description = "vim-airline";
originalName = "vim-airline";
package = pkgs.vimPlugins.vim-airline;
globalPrefix = "airline_";
addExtraConfigRenameWarning = true;

View file

@ -9,6 +9,7 @@ with lib;
with helpers.vim-plugin;
mkVimPlugin config {
name = "emmet";
originalName = "emmet-vim";
package = pkgs.vimPlugins.emmet-vim;
globalPrefix = "user_emmet_";
addExtraConfigRenameWarning = true;

View file

@ -6,7 +6,7 @@
}:
helpers.vim-plugin.mkVimPlugin config {
name = "endwise";
description = "vim-endwise";
originalName = "vim-endwise";
package = pkgs.vimPlugins.vim-endwise;
# Yes it's really not configurable

View file

@ -9,7 +9,7 @@ with helpers.vim-plugin;
with lib;
mkVimPlugin config {
name = "goyo";
description = "goyo.vim";
originalName = "goyo.vim";
package = pkgs.vimPlugins.goyo-vim;
globalPrefix = "goyo_";
addExtraConfigRenameWarning = true;

View file

@ -9,7 +9,7 @@ with lib;
with helpers.vim-plugin;
mkVimPlugin config {
name = "instant";
description = "instant.nvim";
originalName = "instant.nvim";
package = pkgs.vimPlugins.instant-nvim;
globalPrefix = "instant_";
addExtraConfigRenameWarning = true;

View file

@ -9,7 +9,7 @@ with lib;
with helpers.vim-plugin;
mkVimPlugin config {
name = "magma-nvim";
description = "magma-nvim";
originalName = "magma-nvim";
package = pkgs.vimPlugins.magma-nvim-goose;
globalPrefix = "magma_";
addExtraConfigRenameWarning = true;

View file

@ -9,7 +9,7 @@ with lib;
with helpers.vim-plugin;
mkVimPlugin config {
name = "molten";
description = "molten-nvim";
originalName = "molten-nvim";
package = pkgs.vimPlugins.molten-nvim;
globalPrefix = "molten_";
addExtraConfigRenameWarning = true;

View file

@ -9,6 +9,7 @@ with lib;
with helpers.vim-plugin;
mkVimPlugin config {
name = "startify";
originalName = "vim-startify";
package = pkgs.vimPlugins.vim-startify;
globalPrefix = "startify_";
addExtraConfigRenameWarning = true;

View file

@ -6,8 +6,6 @@
}:
helpers.vim-plugin.mkVimPlugin config {
name = "surround";
description = "surround.vim";
originalName = "surround.vim";
package = pkgs.vimPlugins.surround;
options = {};
}