mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
helpers/vim-plugin/mkVimPlugin: rename addExtraConfigRenameWarning to deprecateExtraConfig
This commit is contained in:
parent
7af65ccae4
commit
cef446a4da
15 changed files with 17 additions and 16 deletions
|
@ -8,6 +8,8 @@ with lib; {
|
|||
namespace ? "plugins",
|
||||
maintainers ? [],
|
||||
imports ? [],
|
||||
# deprecations
|
||||
deprecateExtraConfig ? false,
|
||||
# options
|
||||
originalName ? name,
|
||||
defaultPackage ? null,
|
||||
|
@ -15,7 +17,6 @@ with lib; {
|
|||
settingsOptions ? {},
|
||||
settingsExample ? null,
|
||||
globalPrefix ? "",
|
||||
addExtraConfigRenameWarning ? false,
|
||||
extraOptions ? {},
|
||||
# config
|
||||
extraConfig ? cfg: {},
|
||||
|
@ -89,7 +90,7 @@ with lib; {
|
|||
|
||||
imports =
|
||||
imports
|
||||
++ optional (addExtraConfigRenameWarning && createSettingsOption) (
|
||||
++ optional (deprecateExtraConfig && createSettingsOption) (
|
||||
mkRenamedOptionModule
|
||||
["plugins" name "extraConfig"]
|
||||
["plugins" name "settings"]
|
||||
|
|
|
@ -12,7 +12,7 @@ with helpers.vim-plugin;
|
|||
originalName = "copilot.vim";
|
||||
defaultPackage = pkgs.vimPlugins.copilot-vim;
|
||||
globalPrefix = "copilot_";
|
||||
addExtraConfigRenameWarning = true;
|
||||
deprecateExtraConfig = true;
|
||||
|
||||
options = {
|
||||
nodeCommand = mkDefaultOpt {
|
||||
|
|
|
@ -12,7 +12,7 @@ with helpers.vim-plugin;
|
|||
originalName = "vim-ledger";
|
||||
defaultPackage = pkgs.vimPlugins.vim-ledger;
|
||||
globalPrefix = "ledger_";
|
||||
addExtraConfigRenameWarning = true;
|
||||
deprecateExtraConfig = true;
|
||||
|
||||
options = {
|
||||
maxWidth = mkDefaultOpt {
|
||||
|
|
|
@ -12,7 +12,7 @@ with helpers.vim-plugin;
|
|||
originalName = "markdown-preview.nvim";
|
||||
defaultPackage = pkgs.vimPlugins.markdown-preview-nvim;
|
||||
globalPrefix = "mkdp_";
|
||||
addExtraConfigRenameWarning = true;
|
||||
deprecateExtraConfig = true;
|
||||
|
||||
options = {
|
||||
autoStart = mkDefaultOpt {
|
||||
|
|
|
@ -8,6 +8,6 @@ helpers.vim-plugin.mkVimPlugin config {
|
|||
name = "tagbar";
|
||||
defaultPackage = pkgs.vimPlugins.tagbar;
|
||||
globalPrefix = "tagbar_";
|
||||
addExtraConfigRenameWarning = true;
|
||||
deprecateExtraConfig = true;
|
||||
extraPackages = [pkgs.ctags];
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ with helpers.vim-plugin;
|
|||
name = "vim-slime";
|
||||
defaultPackage = pkgs.vimPlugins.vim-slime;
|
||||
globalPrefix = "slime_";
|
||||
addExtraConfigRenameWarning = true;
|
||||
deprecateExtraConfig = true;
|
||||
|
||||
options = {
|
||||
target = mkDefaultOpt {
|
||||
|
|
|
@ -12,7 +12,7 @@ with helpers.vim-plugin;
|
|||
originalName = "zig.vim";
|
||||
defaultPackage = pkgs.vimPlugins.zig-vim;
|
||||
globalPrefix = "zig_";
|
||||
addExtraConfigRenameWarning = true;
|
||||
deprecateExtraConfig = true;
|
||||
|
||||
# Possibly add option to disable Treesitter highlighting if this is installed
|
||||
options = {
|
||||
|
|
|
@ -12,7 +12,7 @@ with helpers.vim-plugin;
|
|||
originalName = "vim-airline";
|
||||
defaultPackage = pkgs.vimPlugins.vim-airline;
|
||||
globalPrefix = "airline_";
|
||||
addExtraConfigRenameWarning = true;
|
||||
deprecateExtraConfig = true;
|
||||
|
||||
options =
|
||||
(
|
||||
|
|
|
@ -12,7 +12,7 @@ with helpers.vim-plugin;
|
|||
originalName = "emmet-vim";
|
||||
defaultPackage = pkgs.vimPlugins.emmet-vim;
|
||||
globalPrefix = "user_emmet_";
|
||||
addExtraConfigRenameWarning = true;
|
||||
deprecateExtraConfig = true;
|
||||
|
||||
options = {
|
||||
mode = mkDefaultOpt {
|
||||
|
|
|
@ -12,7 +12,7 @@ with lib;
|
|||
originalName = "goyo.vim";
|
||||
defaultPackage = pkgs.vimPlugins.goyo-vim;
|
||||
globalPrefix = "goyo_";
|
||||
addExtraConfigRenameWarning = true;
|
||||
deprecateExtraConfig = true;
|
||||
|
||||
options = {
|
||||
width = mkDefaultOpt {
|
||||
|
|
|
@ -12,7 +12,7 @@ with helpers.vim-plugin;
|
|||
originalName = "instant.nvim";
|
||||
defaultPackage = pkgs.vimPlugins.instant-nvim;
|
||||
globalPrefix = "instant_";
|
||||
addExtraConfigRenameWarning = true;
|
||||
deprecateExtraConfig = true;
|
||||
|
||||
options = let
|
||||
mkStr = global: default: desc:
|
||||
|
|
|
@ -12,7 +12,7 @@ with helpers.vim-plugin;
|
|||
originalName = "magma-nvim";
|
||||
defaultPackage = pkgs.vimPlugins.magma-nvim-goose;
|
||||
globalPrefix = "magma_";
|
||||
addExtraConfigRenameWarning = true;
|
||||
deprecateExtraConfig = true;
|
||||
|
||||
options = {
|
||||
imageProvider = mkDefaultOpt {
|
||||
|
|
|
@ -12,7 +12,7 @@ with helpers.vim-plugin;
|
|||
originalName = "molten-nvim";
|
||||
defaultPackage = pkgs.vimPlugins.molten-nvim;
|
||||
globalPrefix = "molten_";
|
||||
addExtraConfigRenameWarning = true;
|
||||
deprecateExtraConfig = true;
|
||||
|
||||
options = {
|
||||
autoOpenOutput = mkDefaultOpt {
|
||||
|
|
|
@ -12,7 +12,7 @@ with helpers.vim-plugin;
|
|||
originalName = "vim-startify";
|
||||
defaultPackage = pkgs.vimPlugins.vim-startify;
|
||||
globalPrefix = "startify_";
|
||||
addExtraConfigRenameWarning = true;
|
||||
deprecateExtraConfig = true;
|
||||
|
||||
options = {
|
||||
sessionDir = mkDefaultOpt {
|
||||
|
|
|
@ -11,7 +11,7 @@ with helpers.vim-plugin;
|
|||
name = "undotree";
|
||||
defaultPackage = pkgs.vimPlugins.undotree;
|
||||
globalPrefix = "undotree_";
|
||||
addExtraConfigRenameWarning = true;
|
||||
deprecateExtraConfig = true;
|
||||
|
||||
options = {
|
||||
windowLayout = mkDefaultOpt {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue