mirror of
https://github.com/nix-community/nixvim.git
synced 2025-12-08 18:11:07 +01:00
treewide: remove old deprecation warnings
This commit is contained in:
parent
629f9d75f8
commit
8441008175
72 changed files with 4 additions and 1506 deletions
|
|
@ -19,17 +19,6 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: Added 2025-04-26; remove after 25.05
|
|
||||||
(lib.mkRenamedOptionModule [ "diagnostics" ] [ "diagnostic" "settings" ])
|
|
||||||
|
|
||||||
# TODO: Added 2025-04-30;
|
|
||||||
# The above rename initially renamed `diagnostics` -> `diagnostic.config`
|
|
||||||
# This rename covers any users who migrated between 2025-04-26 and 2025-04-30
|
|
||||||
# We can consider removing this rename earlier than usual
|
|
||||||
(lib.mkRenamedOptionModule [ "diagnostic" "config" ] [ "diagnostic" "settings" ])
|
|
||||||
];
|
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
extraConfigLuaPre = lib.mkIf (cfg.settings != { }) ''
|
extraConfigLuaPre = lib.mkIf (cfg.settings != { }) ''
|
||||||
vim.diagnostic.config(${lib.nixvim.toLuaObject cfg.settings})
|
vim.diagnostic.config(${lib.nixvim.toLuaObject cfg.settings})
|
||||||
|
|
|
||||||
|
|
@ -8,14 +8,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
dependencies = [ "curl" ];
|
dependencies = [ "curl" ];
|
||||||
|
|
||||||
# TODO: added 2025-04-06, remove after 25.05
|
|
||||||
imports = [
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "chatgpt";
|
|
||||||
packageName = "curl";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
api_key_cmd = lib.nixvim.defaultNullOpts.mkStr null ''
|
api_key_cmd = lib.nixvim.defaultNullOpts.mkStr null ''
|
||||||
The path and arguments to an executable that returns the API key via stdout.
|
The path and arguments to an executable that returns the API key via stdout.
|
||||||
|
|
|
||||||
|
|
@ -13,13 +13,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
maintainers = [ lib.maintainers.jolars ];
|
maintainers = [ lib.maintainers.jolars ];
|
||||||
|
|
||||||
# All of those warnings were introduced on 08/22/2023.
|
|
||||||
# TODO: Remove them in ~2 months (Oct. 2023).
|
|
||||||
imports = [ ./deprecations.nix ];
|
|
||||||
|
|
||||||
# TODO: introduced 2025-01-08: remove after 25.05
|
|
||||||
optionsRenamedToSettings = import ./renamed-options.nix;
|
|
||||||
|
|
||||||
settingsOptions =
|
settingsOptions =
|
||||||
let
|
let
|
||||||
mkBorderOpt = defaultNullOpts.mkBorder "none" "clangd-extensions";
|
mkBorderOpt = defaultNullOpts.mkBorder "none" "clangd-extensions";
|
||||||
|
|
|
||||||
|
|
@ -1,84 +0,0 @@
|
||||||
{ lib, ... }:
|
|
||||||
let
|
|
||||||
inherit (lib) mkRemovedOptionModule mkRenamedOptionModule;
|
|
||||||
basePluginPath = [
|
|
||||||
"plugins"
|
|
||||||
"clangd-extensions"
|
|
||||||
];
|
|
||||||
in
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
(mkRemovedOptionModule (basePluginPath ++ [ "server" ]) ''
|
|
||||||
To configure the `clangd` language server options, please use
|
|
||||||
`plugins.lsp.servers.clangd.extraSettings`.
|
|
||||||
'')
|
|
||||||
(mkRemovedOptionModule (
|
|
||||||
basePluginPath
|
|
||||||
++ [
|
|
||||||
"extensions"
|
|
||||||
"autoSetHints"
|
|
||||||
]
|
|
||||||
) "")
|
|
||||||
]
|
|
||||||
++ (map
|
|
||||||
(
|
|
||||||
optionPath:
|
|
||||||
mkRenamedOptionModule (basePluginPath ++ [ "extensions" ] ++ optionPath) (
|
|
||||||
basePluginPath ++ optionPath
|
|
||||||
)
|
|
||||||
)
|
|
||||||
[
|
|
||||||
[
|
|
||||||
"inlayHints"
|
|
||||||
"inline"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"inlayHints"
|
|
||||||
"onlyCurrentLine"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"inlayHints"
|
|
||||||
"onlyCurrentLineAutocmd"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"inlayHints"
|
|
||||||
"showParameterHints"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"inlayHints"
|
|
||||||
"parameterHintsPrefix"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"inlayHints"
|
|
||||||
"otherHintsPrefix"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"inlayHints"
|
|
||||||
"maxLenAlign"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"inlayHints"
|
|
||||||
"maxLenAlignPadding"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"inlayHints"
|
|
||||||
"rightAlign"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"inlayHints"
|
|
||||||
"rightAlignPadding"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"inlayHints"
|
|
||||||
"highlight"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"inlayHints"
|
|
||||||
"priority"
|
|
||||||
]
|
|
||||||
[ "ast" ]
|
|
||||||
[ "memoryUsage" ]
|
|
||||||
[ "symbolInfo" ]
|
|
||||||
]
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
@ -1,33 +0,0 @@
|
||||||
let
|
|
||||||
inlayHintsOptions = [
|
|
||||||
"inline"
|
|
||||||
"onlyCurrentLine"
|
|
||||||
"onlyCurrentLineAutocmd"
|
|
||||||
"showParameterHints"
|
|
||||||
"parameterHintsPrefix"
|
|
||||||
"otherHintsPrefix"
|
|
||||||
"maxLenAlign"
|
|
||||||
"maxLenAlignPadding"
|
|
||||||
"rightAlign"
|
|
||||||
"rightAlignPadding"
|
|
||||||
"highlight"
|
|
||||||
"priority"
|
|
||||||
];
|
|
||||||
astOptions = [
|
|
||||||
"roleIcons"
|
|
||||||
"kindIcons"
|
|
||||||
"highlights"
|
|
||||||
];
|
|
||||||
in
|
|
||||||
[
|
|
||||||
"memoryUsage"
|
|
||||||
"symbolInfo"
|
|
||||||
]
|
|
||||||
++ map (oldOption: [
|
|
||||||
"inlayHints"
|
|
||||||
oldOption
|
|
||||||
]) inlayHintsOptions
|
|
||||||
++ map (oldOption: [
|
|
||||||
"ast"
|
|
||||||
oldOption
|
|
||||||
]) astOptions
|
|
||||||
|
|
@ -13,74 +13,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
|
|
||||||
# TODO introduced 2024-07-06: remove after 25.05
|
|
||||||
imports =
|
|
||||||
let
|
|
||||||
oldPluginPath = [
|
|
||||||
"plugins"
|
|
||||||
"nvim-colorizer"
|
|
||||||
];
|
|
||||||
newPluginPath = [
|
|
||||||
"plugins"
|
|
||||||
"colorizer"
|
|
||||||
];
|
|
||||||
|
|
||||||
# {
|
|
||||||
# old = ["userDefaultOptions" "RGB"]; }
|
|
||||||
# new = ["settings" "user_default_options" "RGB"];
|
|
||||||
# }
|
|
||||||
userOptsRenames =
|
|
||||||
map
|
|
||||||
(name: {
|
|
||||||
old = [
|
|
||||||
"userDefaultOptions"
|
|
||||||
name
|
|
||||||
];
|
|
||||||
new = [
|
|
||||||
"settings"
|
|
||||||
"user_default_options"
|
|
||||||
name
|
|
||||||
];
|
|
||||||
})
|
|
||||||
[
|
|
||||||
"RGB"
|
|
||||||
"RRGGBB"
|
|
||||||
"names"
|
|
||||||
"RRGGBBAA"
|
|
||||||
"AARRGGBB"
|
|
||||||
"rgb_fn"
|
|
||||||
"hsl_fn"
|
|
||||||
"tailwind"
|
|
||||||
"sass"
|
|
||||||
"virtualtext"
|
|
||||||
"virtualtext_inline"
|
|
||||||
"virtualtext_mode"
|
|
||||||
"always_update"
|
|
||||||
];
|
|
||||||
|
|
||||||
in
|
|
||||||
lib.nixvim.mkSettingsRenamedOptionModules oldPluginPath newPluginPath (
|
|
||||||
[
|
|
||||||
"enable"
|
|
||||||
"package"
|
|
||||||
{
|
|
||||||
old = "fileTypes";
|
|
||||||
new = [
|
|
||||||
"settings"
|
|
||||||
"filetypes"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
old = "bufTypes";
|
|
||||||
new = [
|
|
||||||
"settings"
|
|
||||||
"buftypes"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
]
|
|
||||||
++ userOptsRenames
|
|
||||||
);
|
|
||||||
|
|
||||||
settingsOptions =
|
settingsOptions =
|
||||||
let
|
let
|
||||||
colorizerOptions = {
|
colorizerOptions = {
|
||||||
|
|
|
||||||
|
|
@ -15,14 +15,6 @@ lib.nixvim.plugins.mkVimPlugin {
|
||||||
|
|
||||||
dependencies = [ "git" ];
|
dependencies = [ "git" ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-06, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "committia";
|
|
||||||
packageName = "git";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
open_only_vim_starting = defaultNullOpts.mkFlagInt 1 ''
|
open_only_vim_starting = defaultNullOpts.mkFlagInt 1 ''
|
||||||
If `0`, committia.vim always attempts to open committia's buffer when `COMMIT_EDITMSG` buffer is opened.
|
If `0`, committia.vim always attempts to open committia's buffer when `COMMIT_EDITMSG` buffer is opened.
|
||||||
|
|
|
||||||
|
|
@ -14,13 +14,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
|
|
||||||
# TODO introduced 2024-12-19: remove after 25.05
|
|
||||||
deprecateExtraOptions = true;
|
|
||||||
optionsRenamedToSettings = [
|
|
||||||
"event"
|
|
||||||
"fixPairs"
|
|
||||||
];
|
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
event =
|
event =
|
||||||
defaultNullOpts.mkListOf types.str
|
defaultNullOpts.mkListOf types.str
|
||||||
|
|
|
||||||
|
|
@ -158,15 +158,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO: introduced 2025-05-17: remove after 25.11
|
|
||||||
imports = [
|
|
||||||
(lib.mkRemovedOptionModule [
|
|
||||||
"plugins"
|
|
||||||
"copilot-lua"
|
|
||||||
"nodePackage"
|
|
||||||
] "Use `dependencies.nodejs.package` instead to change the Node.js package.")
|
|
||||||
];
|
|
||||||
|
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
assertions = lib.nixvim.mkAssertions "plugins.copilot-lua" {
|
assertions = lib.nixvim.mkAssertions "plugins.copilot-lua" {
|
||||||
assertion = !config.plugins.copilot-vim.enable;
|
assertion = !config.plugins.copilot-vim.enable;
|
||||||
|
|
@ -181,8 +172,4 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
pkgs.vimPlugins.copilot-lsp
|
pkgs.vimPlugins.copilot-lsp
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO: introduced 2025-01-07: remove after 25.05
|
|
||||||
deprecateExtraOptions = true;
|
|
||||||
optionsRenamedToSettings = import ./renamed-options.nix;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,58 +0,0 @@
|
||||||
let
|
|
||||||
panelOptions = [
|
|
||||||
"enabled"
|
|
||||||
"autoRefresh"
|
|
||||||
];
|
|
||||||
panelKeymapOptions = [
|
|
||||||
"jumpPrev"
|
|
||||||
"jumpNext"
|
|
||||||
"accept"
|
|
||||||
"refresh"
|
|
||||||
"open"
|
|
||||||
];
|
|
||||||
panelLayoutOptions = [
|
|
||||||
"position"
|
|
||||||
"ratio"
|
|
||||||
];
|
|
||||||
suggestionOptions = [
|
|
||||||
"enabled"
|
|
||||||
"autoTrigger"
|
|
||||||
"debounce"
|
|
||||||
];
|
|
||||||
suggestionKeymapOptions = [
|
|
||||||
"accept"
|
|
||||||
"acceptWord"
|
|
||||||
"acceptLine"
|
|
||||||
"next"
|
|
||||||
"prev"
|
|
||||||
"dismiss"
|
|
||||||
];
|
|
||||||
in
|
|
||||||
[
|
|
||||||
"filetypes"
|
|
||||||
"copilotNodeCommand"
|
|
||||||
"serverOptsOverrides"
|
|
||||||
]
|
|
||||||
++ map (oldOption: [
|
|
||||||
"panel"
|
|
||||||
oldOption
|
|
||||||
]) panelOptions
|
|
||||||
++ map (oldOption: [
|
|
||||||
"panel"
|
|
||||||
"keymap"
|
|
||||||
oldOption
|
|
||||||
]) panelKeymapOptions
|
|
||||||
++ map (oldOption: [
|
|
||||||
"panel"
|
|
||||||
"layout"
|
|
||||||
oldOption
|
|
||||||
]) panelLayoutOptions
|
|
||||||
++ map (oldOption: [
|
|
||||||
"suggestion"
|
|
||||||
oldOption
|
|
||||||
]) suggestionOptions
|
|
||||||
++ map (oldOption: [
|
|
||||||
"suggestion"
|
|
||||||
"keymap"
|
|
||||||
oldOption
|
|
||||||
]) suggestionKeymapOptions
|
|
||||||
|
|
@ -14,14 +14,6 @@ lib.nixvim.plugins.mkVimPlugin {
|
||||||
|
|
||||||
dependencies = [ "cornelis" ];
|
dependencies = [ "cornelis" ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "cornelis";
|
|
||||||
packageName = "cornelis";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
use_global_binary = defaultNullOpts.mkFlagInt 0 ''
|
use_global_binary = defaultNullOpts.mkFlagInt 0 ''
|
||||||
Whether to use global binary instead of stack.
|
Whether to use global binary instead of stack.
|
||||||
|
|
|
||||||
|
|
@ -8,18 +8,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
{ cmpSourcePlugins.crates = "crates"; }
|
{ cmpSourcePlugins.crates = "crates"; }
|
||||||
]
|
|
||||||
++
|
|
||||||
# TODO introduced 2024-12-12: remove after 25.05
|
|
||||||
lib.nixvim.mkSettingsRenamedOptionModules [ "plugins" "crates-nvim" ]
|
|
||||||
[ "plugins" "crates" ]
|
|
||||||
[
|
|
||||||
"enable"
|
|
||||||
"package"
|
|
||||||
{
|
|
||||||
old = "extraOptions";
|
|
||||||
new = "settings";
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
|
|
||||||
settingsOptions = { };
|
settingsOptions = { };
|
||||||
|
|
|
||||||
|
|
@ -15,14 +15,6 @@ lib.nixvim.plugins.mkVimPlugin {
|
||||||
|
|
||||||
dependencies = [ "direnv" ];
|
dependencies = [ "direnv" ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "direnv";
|
|
||||||
packageName = "direnv";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
direnv_auto = defaultNullOpts.mkFlagInt 1 ''
|
direnv_auto = defaultNullOpts.mkFlagInt 1 ''
|
||||||
It will not execute `:DirenvExport` automatically if the value is `0`.
|
It will not execute `:DirenvExport` automatically if the value is `0`.
|
||||||
|
|
|
||||||
|
|
@ -19,14 +19,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
dependencies = [ "distant" ];
|
dependencies = [ "distant" ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "distant";
|
|
||||||
packageName = "distant";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
buffer = {
|
buffer = {
|
||||||
watch = {
|
watch = {
|
||||||
|
|
|
||||||
|
|
@ -14,43 +14,6 @@ lib.nixvim.plugins.mkVimPlugin {
|
||||||
|
|
||||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
|
|
||||||
# TODO: Added 2024-12-16; remove after 25.05
|
|
||||||
optionsRenamedToSettings = [
|
|
||||||
"autoclose"
|
|
||||||
"autohide"
|
|
||||||
"autoinsert"
|
|
||||||
"borderchars"
|
|
||||||
"giteditor"
|
|
||||||
"height"
|
|
||||||
"opener"
|
|
||||||
"position"
|
|
||||||
"rootmarkers"
|
|
||||||
"shell"
|
|
||||||
"title"
|
|
||||||
"width"
|
|
||||||
"wintype"
|
|
||||||
]
|
|
||||||
++
|
|
||||||
map
|
|
||||||
(name: {
|
|
||||||
old = [
|
|
||||||
"keymaps"
|
|
||||||
name
|
|
||||||
];
|
|
||||||
new = "keymap_${name}";
|
|
||||||
})
|
|
||||||
[
|
|
||||||
"first"
|
|
||||||
"hide"
|
|
||||||
"kill"
|
|
||||||
"last"
|
|
||||||
"new"
|
|
||||||
"next"
|
|
||||||
"prev"
|
|
||||||
"show"
|
|
||||||
"toggle"
|
|
||||||
];
|
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
shell = mkNullOrStr ''
|
shell = mkNullOrStr ''
|
||||||
Which shell should floaterm use.
|
Which shell should floaterm use.
|
||||||
|
|
|
||||||
|
|
@ -12,14 +12,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
dependencies = [ "flutter" ];
|
dependencies = [ "flutter" ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "flutter-tools";
|
|
||||||
packageName = "flutter";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
extraConfig = cfg: {
|
extraConfig = cfg: {
|
||||||
warnings = lib.nixvim.mkWarnings "plugins.flutter-tools" {
|
warnings = lib.nixvim.mkWarnings "plugins.flutter-tools" {
|
||||||
when =
|
when =
|
||||||
|
|
|
||||||
|
|
@ -11,13 +11,5 @@ lib.nixvim.plugins.mkVimPlugin {
|
||||||
|
|
||||||
dependencies = [ "git" ];
|
dependencies = [ "git" ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "fugitive";
|
|
||||||
packageName = "git";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
# In typical tpope fashion, this plugin has no config options
|
# In typical tpope fashion, this plugin has no config options
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,4 @@
|
||||||
{
|
{ lib, ... }:
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
let
|
||||||
inherit (lib) types mkOption;
|
inherit (lib) types mkOption;
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
|
|
@ -38,22 +34,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
dependencies = [ "fzf" ];
|
dependencies = [ "fzf" ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "fzf-lua";
|
|
||||||
packageName = "fzf";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
extraOptions = {
|
extraOptions = {
|
||||||
# TODO: deprecated 2024-08-29 remove after 24.11
|
|
||||||
iconsEnabled = mkOption {
|
|
||||||
type = types.bool;
|
|
||||||
description = "Toggle icon support. Installs nvim-web-devicons.";
|
|
||||||
visible = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
profile = lib.nixvim.defaultNullOpts.mkEnumFirstDefault [
|
profile = lib.nixvim.defaultNullOpts.mkEnumFirstDefault [
|
||||||
"default"
|
"default"
|
||||||
"fzf-native"
|
"fzf-native"
|
||||||
|
|
@ -106,39 +87,11 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
extraConfig = cfg: opts: {
|
extraConfig = cfg: {
|
||||||
dependencies.skim.enable = lib.mkIf (cfg.profile == "skim" || cfg.settings.fzf_bin == "sk") (
|
dependencies.skim.enable = lib.mkIf (cfg.profile == "skim" || cfg.settings.fzf_bin == "sk") (
|
||||||
lib.mkDefault true
|
lib.mkDefault true
|
||||||
);
|
);
|
||||||
|
|
||||||
# TODO: deprecated 2024-08-29 remove after 24.11
|
|
||||||
warnings = lib.nixvim.mkWarnings "plugins.fzf-lua" {
|
|
||||||
when = opts.iconsEnabled.isDefined;
|
|
||||||
|
|
||||||
message = ''
|
|
||||||
The option definition `plugins.fzf-lua.iconsEnabled' in ${lib.showFiles opts.iconsEnabled.files} has been deprecated; please remove it.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
# TODO: added 2024-09-20 remove after 24.11
|
|
||||||
plugins.web-devicons =
|
|
||||||
lib.mkIf
|
|
||||||
(
|
|
||||||
opts.iconsEnabled.isDefined
|
|
||||||
&& cfg.iconsEnabled
|
|
||||||
&& !(
|
|
||||||
(
|
|
||||||
config.plugins.mini.enable
|
|
||||||
&& config.plugins.mini.modules ? icons
|
|
||||||
&& config.plugins.mini.mockDevIcons
|
|
||||||
)
|
|
||||||
|| (config.plugins.mini-icons.enable && config.plugins.mini-icons.mockDevIcons)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
{
|
|
||||||
enable = lib.mkOverride 1490 true;
|
|
||||||
};
|
|
||||||
|
|
||||||
plugins.fzf-lua.settings.__unkeyed_profile = cfg.profile;
|
plugins.fzf-lua.settings.__unkeyed_profile = cfg.profile;
|
||||||
|
|
||||||
keymaps = lib.mapAttrsToList (
|
keymaps = lib.mapAttrsToList (
|
||||||
|
|
|
||||||
|
|
@ -8,14 +8,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
dependencies = [ "git" ];
|
dependencies = [ "git" ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "git-conflict";
|
|
||||||
packageName = "git";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
default_mappings =
|
default_mappings =
|
||||||
lib.nixvim.defaultNullOpts.mkNullable (with lib.types; either bool (attrsOf str)) true
|
lib.nixvim.defaultNullOpts.mkNullable (with lib.types; either bool (attrsOf str)) true
|
||||||
|
|
|
||||||
|
|
@ -15,14 +15,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
dependencies = [ "git" ];
|
dependencies = [ "git" ];
|
||||||
|
|
||||||
# TODO: added 2025-04-06, remove after 25.05
|
|
||||||
imports = [
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "git-worktree";
|
|
||||||
packageName = "git";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
change_directory_command = defaultNullOpts.mkStr "cd" ''
|
change_directory_command = defaultNullOpts.mkStr "cd" ''
|
||||||
The vim command used to change to the new worktree directory.
|
The vim command used to change to the new worktree directory.
|
||||||
|
|
|
||||||
|
|
@ -13,14 +13,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
maintainers = with lib.maintainers; [ GaetanLepage ];
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "gitblame";
|
|
||||||
packageName = "git";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
dependencies = [ "git" ];
|
dependencies = [ "git" ];
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
|
|
|
||||||
|
|
@ -15,34 +15,6 @@ lib.nixvim.plugins.mkVimPlugin {
|
||||||
|
|
||||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
|
|
||||||
# TODO introduced 2024-12-16: remove after 25.05
|
|
||||||
optionsRenamedToSettings = import ./renamed-options.nix lib;
|
|
||||||
imports =
|
|
||||||
let
|
|
||||||
basePluginPath = [
|
|
||||||
"plugins"
|
|
||||||
"gitgutter"
|
|
||||||
];
|
|
||||||
in
|
|
||||||
[
|
|
||||||
(lib.mkRemovedOptionModule (
|
|
||||||
basePluginPath ++ [ "grep" ]
|
|
||||||
) "Please, use `plugins.gitgutter.grepPackage` and/or `plugins.gitgutter.settings.grep`.")
|
|
||||||
(lib.mkRemovedOptionModule (
|
|
||||||
basePluginPath
|
|
||||||
++ [
|
|
||||||
"signs"
|
|
||||||
"modifiedAbove"
|
|
||||||
]
|
|
||||||
) "This option has been removed from upstream")
|
|
||||||
|
|
||||||
# TODO: added 2025-04-06, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "gitgutter";
|
|
||||||
packageName = "git";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
dependencies = [ "git" ];
|
dependencies = [ "git" ];
|
||||||
|
|
||||||
extraOptions = {
|
extraOptions = {
|
||||||
|
|
|
||||||
|
|
@ -15,15 +15,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
dependencies = [ "nodejs" ];
|
dependencies = [ "nodejs" ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "gitlab";
|
|
||||||
packageName = "nodejs";
|
|
||||||
oldPackageName = "node";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
gitlab_url = defaultNullOpts.mkStr "https://gitlab.com" ''
|
gitlab_url = defaultNullOpts.mkStr "https://gitlab.com" ''
|
||||||
The GitLab instance url to use if not `https://gitlab.com`.
|
The GitLab instance url to use if not `https://gitlab.com`.
|
||||||
|
|
|
||||||
|
|
@ -16,31 +16,6 @@ lib.nixvim.plugins.mkVimPlugin {
|
||||||
|
|
||||||
dependencies = [ "git" ];
|
dependencies = [ "git" ];
|
||||||
|
|
||||||
# TODO: Added 2024-12-16; remove after 25.05
|
|
||||||
optionsRenamedToSettings = [
|
|
||||||
"closeOnCursorMoved"
|
|
||||||
"includeDiff"
|
|
||||||
"gitCommand"
|
|
||||||
"noDefaultMappings"
|
|
||||||
"intoPopupAfterShow"
|
|
||||||
"alwaysIntoPopup"
|
|
||||||
"extraBlameArgs"
|
|
||||||
"previewMods"
|
|
||||||
"maxPopupHeight"
|
|
||||||
"maxPopupWidth"
|
|
||||||
"dateFormat"
|
|
||||||
"concealWordDiffMarker"
|
|
||||||
"floatingWinOps"
|
|
||||||
"popupContentMargins"
|
|
||||||
];
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "gitmessenger";
|
|
||||||
packageName = "git";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
close_on_cursor_moved = defaultNullOpts.mkBool true ''
|
close_on_cursor_moved = defaultNullOpts.mkBool true ''
|
||||||
A popup window is no longer closed automatically when moving a cursor after the window is
|
A popup window is no longer closed automatically when moving a cursor after the window is
|
||||||
|
|
|
||||||
|
|
@ -10,14 +10,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-06, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "gitsigns";
|
|
||||||
packageName = "git";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
dependencies = [ "git" ];
|
dependencies = [ "git" ];
|
||||||
|
|
||||||
settingsOptions = import ./settings-options.nix lib;
|
settingsOptions = import ./settings-options.nix lib;
|
||||||
|
|
|
||||||
|
|
@ -14,14 +14,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
dependencies = [ "glow" ];
|
dependencies = [ "glow" ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "glow";
|
|
||||||
packageName = "glow";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
glow_path = defaultNullOpts.mkStr (lib.nixvim.literalLua "vim.fn.exepath('glow')") ''
|
glow_path = defaultNullOpts.mkStr (lib.nixvim.literalLua "vim.fn.exepath('glow')") ''
|
||||||
Path to `glow` binary.
|
Path to `glow` binary.
|
||||||
|
|
|
||||||
|
|
@ -9,14 +9,6 @@ lib.nixvim.plugins.mkVimPlugin {
|
||||||
|
|
||||||
dependencies = [ "godot" ];
|
dependencies = [ "godot" ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "godot";
|
|
||||||
packageName = "godot";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
executable = lib.nixvim.defaultNullOpts.mkStr "godot" ''
|
executable = lib.nixvim.defaultNullOpts.mkStr "godot" ''
|
||||||
Path to the `godot` executable.
|
Path to the `godot` executable.
|
||||||
|
|
|
||||||
|
|
@ -9,14 +9,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "hex";
|
|
||||||
packageName = "xxd";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
dependencies.xxd.enable = lib.mkDefault true;
|
dependencies.xxd.enable = lib.mkDefault true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -14,14 +14,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
|
|
||||||
# TODO: option deprecations added 2025-03-20. Remove after 25.05
|
|
||||||
# TODO: curlPackage and ueberzugPackage deprecations added 2025-04-06. Remove after 25.05
|
|
||||||
inherit (import ./deprecations.nix lib)
|
|
||||||
deprecateExtraOptions
|
|
||||||
optionsRenamedToSettings
|
|
||||||
imports
|
|
||||||
;
|
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
backend =
|
backend =
|
||||||
defaultNullOpts.mkEnumFirstDefault
|
defaultNullOpts.mkEnumFirstDefault
|
||||||
|
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
||||||
lib: {
|
|
||||||
deprecateExtraOptions = true;
|
|
||||||
optionsRenamedToSettings = [
|
|
||||||
"backend"
|
|
||||||
"maxWidth"
|
|
||||||
"maxHeight"
|
|
||||||
"maxWidthWindowPercentage"
|
|
||||||
"maxHeightWindowPercentage"
|
|
||||||
"windowOverlapClearEnabled"
|
|
||||||
"windowOverlapClearFtIgnore"
|
|
||||||
"editorOnlyRenderWhenFocused"
|
|
||||||
"tmuxShowOnlyInActiveWindow"
|
|
||||||
"hijackFilePatterns"
|
|
||||||
];
|
|
||||||
imports = [
|
|
||||||
(lib.mkRemovedOptionModule [ "plugins" "image" "integrations" ] ''
|
|
||||||
Nixvim(plugins.image): The option `integrations` has been renamed to `settings.integrations`.
|
|
||||||
Warning: sub-options now have the same name as upstream (`clear_in_insert_mode`...).
|
|
||||||
'')
|
|
||||||
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "image";
|
|
||||||
packageName = "curl";
|
|
||||||
})
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "image";
|
|
||||||
packageName = "ueberzug";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
@ -14,16 +14,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
maintainers = [ lib.maintainers.jolars ];
|
maintainers = [ lib.maintainers.jolars ];
|
||||||
|
|
||||||
# TODO: introduced 2025-01-08: remove after 25.05
|
|
||||||
optionsRenamedToSettings = [
|
|
||||||
"cmdName"
|
|
||||||
"hlGroup"
|
|
||||||
"previewEmptyName"
|
|
||||||
"showMessage"
|
|
||||||
"inputBufferType"
|
|
||||||
"postHook"
|
|
||||||
];
|
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
cmd_name = defaultNullOpts.mkStr "IncRename" "The name of the command.";
|
cmd_name = defaultNullOpts.mkStr "IncRename" "The name of the command.";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,12 +10,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
|
|
||||||
# TODO: Added 2025-04-07; remove after 25.05
|
|
||||||
inherit (import ./deprecations.nix lib)
|
|
||||||
imports
|
|
||||||
deprecateExtraOptions
|
|
||||||
;
|
|
||||||
|
|
||||||
extraOptions = {
|
extraOptions = {
|
||||||
jdtLanguageServerPackage = lib.mkPackageOption pkgs "jdt-language-server" {
|
jdtLanguageServerPackage = lib.mkPackageOption pkgs "jdt-language-server" {
|
||||||
nullable = true;
|
nullable = true;
|
||||||
|
|
|
||||||
|
|
@ -1,49 +0,0 @@
|
||||||
lib: {
|
|
||||||
deprecateExtraOptions = true;
|
|
||||||
|
|
||||||
imports =
|
|
||||||
let
|
|
||||||
oldPluginPath = [
|
|
||||||
"plugins"
|
|
||||||
"nvim-jdtls"
|
|
||||||
];
|
|
||||||
newPluginPath = [
|
|
||||||
"plugins"
|
|
||||||
"jdtls"
|
|
||||||
];
|
|
||||||
|
|
||||||
settingsOptions = {
|
|
||||||
cmd = "cmd";
|
|
||||||
rootDir = "root_dir";
|
|
||||||
settings = "settings";
|
|
||||||
initOptions = "init_options";
|
|
||||||
};
|
|
||||||
|
|
||||||
renamedOptions = lib.nixvim.mkSettingsRenamedOptionModules oldPluginPath newPluginPath (
|
|
||||||
[
|
|
||||||
"enable"
|
|
||||||
"package"
|
|
||||||
{
|
|
||||||
old = "jdtLanguageServerPackage";
|
|
||||||
new = "jdtLanguageServerPackage";
|
|
||||||
}
|
|
||||||
]
|
|
||||||
++ (lib.mapAttrsToList (old: new_: {
|
|
||||||
inherit old;
|
|
||||||
new = [
|
|
||||||
"settings"
|
|
||||||
new_
|
|
||||||
];
|
|
||||||
}) settingsOptions)
|
|
||||||
);
|
|
||||||
in
|
|
||||||
renamedOptions
|
|
||||||
++ [
|
|
||||||
(lib.mkRemovedOptionModule (oldPluginPath ++ [ "data" ]) ''
|
|
||||||
Please, directly add the necessary `"-data"` flag and its argument to `plugins.jdtls.settings.cmd`
|
|
||||||
'')
|
|
||||||
(lib.mkRemovedOptionModule (oldPluginPath ++ [ "configuration" ]) ''
|
|
||||||
Please, directly add the necessary `"-configuration"` flag and its argument to `plugins.jdtls.settings.cmd`
|
|
||||||
'')
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
@ -19,18 +19,6 @@ lib.nixvim.plugins.mkVimPlugin {
|
||||||
"lazygit"
|
"lazygit"
|
||||||
];
|
];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "lazygit";
|
|
||||||
packageName = "git";
|
|
||||||
})
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "lazygit";
|
|
||||||
packageName = "lazygit";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
floating_window_winblend = defaultNullOpts.mkNullable (types.ints.between 0 100) 0 ''
|
floating_window_winblend = defaultNullOpts.mkNullable (types.ints.between 0 100) 0 ''
|
||||||
Set the transparency of the floating window.
|
Set the transparency of the floating window.
|
||||||
|
|
|
||||||
|
|
@ -14,14 +14,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
dependencies = [ "lean" ];
|
dependencies = [ "lean" ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "lean";
|
|
||||||
packageName = "lean";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
stderr = {
|
stderr = {
|
||||||
on_lines = defaultNullOpts.mkLuaFn "nil" ''
|
on_lines = defaultNullOpts.mkLuaFn "nil" ''
|
||||||
|
|
@ -59,7 +51,4 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO: Deprecated in 2025-01-31
|
|
||||||
inherit (import ./deprecations.nix) deprecateExtraOptions optionsRenamedToSettings;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,109 +0,0 @@
|
||||||
{
|
|
||||||
deprecateExtraOptions = true;
|
|
||||||
optionsRenamedToSettings = [
|
|
||||||
"lsp"
|
|
||||||
[
|
|
||||||
"ft"
|
|
||||||
"default"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"ft"
|
|
||||||
"nomodifiable"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"abbreviations"
|
|
||||||
"enable"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"abbreviations"
|
|
||||||
"extra"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"abbreviations"
|
|
||||||
"leader"
|
|
||||||
]
|
|
||||||
"mappings"
|
|
||||||
[
|
|
||||||
"infoview"
|
|
||||||
"autoopen"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"infoview"
|
|
||||||
"autopause"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"infoview"
|
|
||||||
"width"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"infoview"
|
|
||||||
"height"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"infoview"
|
|
||||||
"horizontalPosition"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"infoview"
|
|
||||||
"separateTab"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"infoview"
|
|
||||||
"indicators"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"infoview"
|
|
||||||
"lean3"
|
|
||||||
"showFilter"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"infoview"
|
|
||||||
"lean3"
|
|
||||||
"mouseEvents"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"infoview"
|
|
||||||
"showProcessing"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"infoview"
|
|
||||||
"showNoInfoMessage"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"infoview"
|
|
||||||
"useWidgets"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"infoview"
|
|
||||||
"mappings"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"progressBars"
|
|
||||||
"enable"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"progressBars"
|
|
||||||
"priority"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"stderr"
|
|
||||||
"enable"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"stderr"
|
|
||||||
"height"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"stderr"
|
|
||||||
"onLines"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"lsp3"
|
|
||||||
"enable"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"lsp3"
|
|
||||||
"onAttach"
|
|
||||||
]
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
@ -10,14 +10,6 @@ lib.nixvim.plugins.mkVimPlugin {
|
||||||
|
|
||||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "ledger";
|
|
||||||
packageName = "ledger";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
dependencies = [ "ledger" ];
|
dependencies = [ "ledger" ];
|
||||||
|
|
||||||
settingsExample = {
|
settingsExample = {
|
||||||
|
|
|
||||||
|
|
@ -12,15 +12,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
dependencies = [ "llm-ls" ];
|
dependencies = [ "llm-ls" ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "llm";
|
|
||||||
packageName = "llm-ls";
|
|
||||||
oldPackageName = "llmLs";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
# If not setting this option, llm.nvim will try to download the llm-ls binary from the internet.
|
# If not setting this option, llm.nvim will try to download the llm-ls binary from the internet.
|
||||||
plugins.llm.settings.lsp.bin_path =
|
plugins.llm.settings.lsp.bin_path =
|
||||||
|
|
|
||||||
|
|
@ -10,14 +10,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
maintainers = [ lib.maintainers.khaneliman ];
|
maintainers = [ lib.maintainers.khaneliman ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-06, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "lualine";
|
|
||||||
packageName = "git";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
dependencies = [ "git" ];
|
dependencies = [ "git" ];
|
||||||
|
|
||||||
settingsOptions =
|
settingsOptions =
|
||||||
|
|
|
||||||
|
|
@ -9,18 +9,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "neogit";
|
|
||||||
packageName = "git";
|
|
||||||
})
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "neogit";
|
|
||||||
packageName = "which";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"git"
|
"git"
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -19,43 +19,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
|
|
||||||
# TODO introduced 2024-12-12: remove after 25.05
|
|
||||||
deprecateExtraOptions = true;
|
|
||||||
optionsRenamedToSettings = [
|
|
||||||
"lazyLoading"
|
|
||||||
[
|
|
||||||
"logger"
|
|
||||||
"plugin"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"logger"
|
|
||||||
"useConsole"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"logger"
|
|
||||||
"highlights"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"logger"
|
|
||||||
"useFile"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"logger"
|
|
||||||
"level"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"logger"
|
|
||||||
"floatPrecision"
|
|
||||||
]
|
|
||||||
{
|
|
||||||
old = "modules";
|
|
||||||
new = "load";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
imports = [
|
|
||||||
./deprecations.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
extraOptions = {
|
extraOptions = {
|
||||||
telescopeIntegration = {
|
telescopeIntegration = {
|
||||||
enable = lib.mkEnableOption "`neorg-telescope` plugin for telescope integration.";
|
enable = lib.mkEnableOption "`neorg-telescope` plugin for telescope integration.";
|
||||||
|
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
||||||
{ lib, ... }:
|
|
||||||
let
|
|
||||||
basePluginPath = [
|
|
||||||
"plugins"
|
|
||||||
"neorg"
|
|
||||||
];
|
|
||||||
in
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
(lib.mkRemovedOptionModule (
|
|
||||||
basePluginPath
|
|
||||||
++ [
|
|
||||||
"logger"
|
|
||||||
"modes"
|
|
||||||
]
|
|
||||||
) "Please use `settings.logger.modes` but you now need to provide a list of submodules.")
|
|
||||||
(lib.mkRenamedOptionModule (basePluginPath ++ [ "neorgTelescopePackage" ]) (
|
|
||||||
basePluginPath
|
|
||||||
++ [
|
|
||||||
"telescopeIntegration"
|
|
||||||
"package"
|
|
||||||
]
|
|
||||||
))
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
@ -17,12 +17,6 @@ lib: {
|
||||||
"root_folder_label"
|
"root_folder_label"
|
||||||
] (config: !lib.getAttrFromPath oldOptPath config)
|
] (config: !lib.getAttrFromPath oldOptPath config)
|
||||||
)
|
)
|
||||||
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "nvim-tree";
|
|
||||||
packageName = "git";
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Deprecations after mkNeovimPlugin migration, added 2025-07-21
|
# Deprecations after mkNeovimPlugin migration, added 2025-07-21
|
||||||
|
|
|
||||||
|
|
@ -15,14 +15,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
dependencies = [ "gh" ];
|
dependencies = [ "gh" ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "octo";
|
|
||||||
packageName = "gh";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
use_local_fs = defaultNullOpts.mkBool false ''
|
use_local_fs = defaultNullOpts.mkBool false ''
|
||||||
Use local files on right side of reviews.
|
Use local files on right side of reviews.
|
||||||
|
|
|
||||||
|
|
@ -19,9 +19,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
|
|
||||||
# TODO: Added 2024-12-17; remove after 25.05
|
|
||||||
optionsRenamedToSettings = import ./renamed-options.nix;
|
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
fuzzy_finder = defaultNullOpts.mkStr "skim" ''
|
fuzzy_finder = defaultNullOpts.mkStr "skim" ''
|
||||||
Fuzzy finder to find documentation.
|
Fuzzy finder to find documentation.
|
||||||
|
|
|
||||||
|
|
@ -1,48 +0,0 @@
|
||||||
[
|
|
||||||
"fuzzyFinder"
|
|
||||||
"cheatsheetWindowBlend"
|
|
||||||
"loadSnippets"
|
|
||||||
"autoOpen"
|
|
||||||
{
|
|
||||||
old = [
|
|
||||||
"keymaps"
|
|
||||||
"enabled"
|
|
||||||
];
|
|
||||||
new = "default_mappings";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
old = [
|
|
||||||
"keymaps"
|
|
||||||
"cheatsheetToggle"
|
|
||||||
];
|
|
||||||
new = "cheatsheet_toggle_key";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
old = [
|
|
||||||
"keymaps"
|
|
||||||
"helpTrigger"
|
|
||||||
];
|
|
||||||
new = "help_trig_key";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
old = [
|
|
||||||
"keymaps"
|
|
||||||
"helpManualTrigger"
|
|
||||||
];
|
|
||||||
new = "help_manual_trig_key";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
old = [
|
|
||||||
"keymaps"
|
|
||||||
"execOpenSCADTrigger"
|
|
||||||
];
|
|
||||||
new = "exec_openscad_trig_key";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
old = [
|
|
||||||
"keymaps"
|
|
||||||
"topToggle"
|
|
||||||
];
|
|
||||||
new = "top_toggle";
|
|
||||||
}
|
|
||||||
]
|
|
||||||
|
|
@ -9,12 +9,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
# papis.nvim is an nvim-cmp source too
|
# papis.nvim is an nvim-cmp source too
|
||||||
imports = [
|
imports = [
|
||||||
{ cmpSourcePlugins.papis = "papis"; }
|
{ cmpSourcePlugins.papis = "papis"; }
|
||||||
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "yq";
|
|
||||||
packageName = "yq";
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
dependencies = [ "yq" ];
|
dependencies = [ "yq" ];
|
||||||
|
|
|
||||||
|
|
@ -14,14 +14,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
dependencies = [ "git" ];
|
dependencies = [ "git" ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "pckr";
|
|
||||||
packageName = "git";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
extraOptions = {
|
extraOptions = {
|
||||||
plugins = lib.mkOption {
|
plugins = lib.mkOption {
|
||||||
default = [ ];
|
default = [ ];
|
||||||
|
|
|
||||||
|
|
@ -9,31 +9,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
maintainers = [ lib.maintainers.jolars ];
|
maintainers = [ lib.maintainers.jolars ];
|
||||||
|
|
||||||
# TODO: introduced 2025-01-08: remove after 25.05
|
|
||||||
optionsRenamedToSettings = [
|
|
||||||
"dir"
|
|
||||||
];
|
|
||||||
imports =
|
|
||||||
let
|
|
||||||
basePluginPath = [
|
|
||||||
"plugins"
|
|
||||||
"persistence"
|
|
||||||
];
|
|
||||||
in
|
|
||||||
map
|
|
||||||
(
|
|
||||||
option:
|
|
||||||
lib.mkRemovedOptionModule (basePluginPath ++ [ option ]) ''
|
|
||||||
This option has been deprecated upstream. The plugin now provides
|
|
||||||
user events to hook into instead.
|
|
||||||
''
|
|
||||||
)
|
|
||||||
[
|
|
||||||
"options"
|
|
||||||
"preSave"
|
|
||||||
"saveEmpty"
|
|
||||||
];
|
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
branch = defaultNullOpts.mkBool true ''
|
branch = defaultNullOpts.mkBool true ''
|
||||||
Use git branch to save session.
|
Use git branch to save session.
|
||||||
|
|
|
||||||
|
|
@ -12,14 +12,6 @@ lib.nixvim.plugins.mkVimPlugin {
|
||||||
|
|
||||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "plantuml-syntax";
|
|
||||||
packageName = "plantuml";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
dependencies = [ "plantuml" ];
|
dependencies = [ "plantuml" ];
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
let
|
let
|
||||||
inherit (lib) mkRemovedOptionModule types;
|
inherit (lib) types;
|
||||||
inherit (lib.nixvim) defaultNullOpts;
|
inherit (lib.nixvim) defaultNullOpts;
|
||||||
in
|
in
|
||||||
lib.nixvim.plugins.mkNeovimPlugin {
|
lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
@ -11,51 +11,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
|
|
||||||
# TODO introduced 2024-04-07: remove 2024-06-07
|
|
||||||
deprecateExtraOptions = true;
|
|
||||||
optionsRenamedToSettings = import ./renamed-options.nix;
|
|
||||||
imports =
|
|
||||||
let
|
|
||||||
basePluginPath = [
|
|
||||||
"plugins"
|
|
||||||
"rest"
|
|
||||||
];
|
|
||||||
in
|
|
||||||
[
|
|
||||||
(mkRemovedOptionModule
|
|
||||||
(
|
|
||||||
basePluginPath
|
|
||||||
++ [
|
|
||||||
"result"
|
|
||||||
"showStatistics"
|
|
||||||
]
|
|
||||||
)
|
|
||||||
''
|
|
||||||
Use `plugins.rest.settings.result.behavior.statistics.{enable,stats}` instead.
|
|
||||||
Refer to the documentation for more information.
|
|
||||||
''
|
|
||||||
)
|
|
||||||
|
|
||||||
# TODO: added 2025-04-06: remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "rest";
|
|
||||||
packageName = "curl";
|
|
||||||
})
|
|
||||||
]
|
|
||||||
++
|
|
||||||
map
|
|
||||||
(
|
|
||||||
option:
|
|
||||||
mkRemovedOptionModule (basePluginPath ++ [ option ]) ''
|
|
||||||
This option has been deprecated upstream.
|
|
||||||
''
|
|
||||||
)
|
|
||||||
[
|
|
||||||
"jumpToRequest"
|
|
||||||
"yankDryRun"
|
|
||||||
"searchBack"
|
|
||||||
];
|
|
||||||
|
|
||||||
dependencies = [ "curl" ];
|
dependencies = [ "curl" ];
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
|
|
|
||||||
|
|
@ -1,105 +0,0 @@
|
||||||
[
|
|
||||||
"envFile"
|
|
||||||
"encodeUrl"
|
|
||||||
"skipSslVerification"
|
|
||||||
"customDynamicVariables"
|
|
||||||
[
|
|
||||||
"highlight"
|
|
||||||
"timeout"
|
|
||||||
]
|
|
||||||
{
|
|
||||||
old = "resultSplitHorizontal";
|
|
||||||
new = [
|
|
||||||
"result"
|
|
||||||
"split"
|
|
||||||
"horizontal"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
old = "resultSplitInPlace";
|
|
||||||
new = [
|
|
||||||
"result"
|
|
||||||
"split"
|
|
||||||
"in_place"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
old = "stayInCurrentWindowAfterSplit";
|
|
||||||
new = [
|
|
||||||
"result"
|
|
||||||
"split"
|
|
||||||
"stay_in_current_window_after_split"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
old = [
|
|
||||||
"result"
|
|
||||||
"showUrl"
|
|
||||||
];
|
|
||||||
new = [
|
|
||||||
|
|
||||||
"result"
|
|
||||||
"behavior"
|
|
||||||
"show_info"
|
|
||||||
"url"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
old = [
|
|
||||||
"result"
|
|
||||||
"showHeaders"
|
|
||||||
];
|
|
||||||
new = [
|
|
||||||
|
|
||||||
"result"
|
|
||||||
"behavior"
|
|
||||||
"show_info"
|
|
||||||
"headers"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
old = [
|
|
||||||
"result"
|
|
||||||
"showHttpInfo"
|
|
||||||
];
|
|
||||||
new = [
|
|
||||||
"result"
|
|
||||||
"behavior"
|
|
||||||
"show_info"
|
|
||||||
"http_info"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
old = [
|
|
||||||
"result"
|
|
||||||
"showCurlCommand"
|
|
||||||
];
|
|
||||||
new = [
|
|
||||||
"result"
|
|
||||||
"behavior"
|
|
||||||
"show_info"
|
|
||||||
"curl_command"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
old = [
|
|
||||||
"result"
|
|
||||||
"formatters"
|
|
||||||
];
|
|
||||||
new = [
|
|
||||||
"result"
|
|
||||||
"behavior"
|
|
||||||
"formatters"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
old = [
|
|
||||||
"highlight"
|
|
||||||
"enabled"
|
|
||||||
];
|
|
||||||
new = [
|
|
||||||
"highlight"
|
|
||||||
"enable"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
]
|
|
||||||
|
|
@ -10,14 +10,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
|
|
||||||
dependencies = [ "rust-analyzer" ];
|
dependencies = [ "rust-analyzer" ];
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "godot";
|
|
||||||
packageName = "rust-analyzer";
|
|
||||||
oldPackageName = "rustAnalyzer";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
settingsOptions = import ./settings-options.nix { inherit lib; };
|
settingsOptions = import ./settings-options.nix { inherit lib; };
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,15 +16,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
dependencies = [ "nodejs" ];
|
dependencies = [ "nodejs" ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "sg";
|
|
||||||
packageName = "nodejs";
|
|
||||||
oldPackageName = "node";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
plugins.sg.settings.node_executable = lib.mkIf config.dependencies.nodejs.enable (
|
plugins.sg.settings.node_executable = lib.mkIf config.dependencies.nodejs.enable (
|
||||||
lib.mkDefault (lib.getExe config.dependencies.nodejs.package)
|
lib.mkDefault (lib.getExe config.dependencies.nodejs.package)
|
||||||
|
|
|
||||||
|
|
@ -13,21 +13,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "spectre";
|
|
||||||
packageName = "ripgrep";
|
|
||||||
oldPackageName = "find";
|
|
||||||
})
|
|
||||||
(lib.mkRemovedOptionModule [ "plugins" "spectre" "replacePackage" ] ''
|
|
||||||
If you have set `plugins.spectre.settings.default.find.cmd` to "sed" (or "sd" respectively), Nixvim will automatically enable `dependencies.sed.enable` (or `sd` respectively).
|
|
||||||
|
|
||||||
- If you want to disable automatic installation of the replace tool, set `dependencies.s[e]d.enable` to `false`.
|
|
||||||
- If you want to override which package is installed by Nixvim, set the `dependencies.s[e]d.package` option.
|
|
||||||
'')
|
|
||||||
];
|
|
||||||
|
|
||||||
dependencies =
|
dependencies =
|
||||||
let
|
let
|
||||||
defaults = config.plugins.spectre.settings.default;
|
defaults = config.plugins.spectre.settings.default;
|
||||||
|
|
|
||||||
|
|
@ -9,17 +9,6 @@ lib.nixvim.plugins.mkVimPlugin {
|
||||||
|
|
||||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
|
|
||||||
# TODO introduced 2024-02-12: remove 2024-04-12
|
|
||||||
deprecateExtraConfig = true;
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "tagbar";
|
|
||||||
packageName = "ctags";
|
|
||||||
oldPackageName = "tags";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
dependencies = [ "ctags" ];
|
dependencies = [ "ctags" ];
|
||||||
|
|
||||||
settingsExample = {
|
settingsExample = {
|
||||||
|
|
|
||||||
|
|
@ -21,12 +21,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./extensions
|
./extensions
|
||||||
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "telescope";
|
|
||||||
packageName = "bat";
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
dependencies = [ "bat" ];
|
dependencies = [ "bat" ];
|
||||||
|
|
|
||||||
|
|
@ -14,19 +14,6 @@ mkExtension {
|
||||||
|
|
||||||
dependencies = [ "ripgrep" ];
|
dependencies = [ "ripgrep" ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = [
|
|
||||||
"telescope"
|
|
||||||
"extensions"
|
|
||||||
"live-grep-args"
|
|
||||||
];
|
|
||||||
packageName = "ripgrep";
|
|
||||||
oldPackageName = "grep";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
auto_quoting = defaultNullOpts.mkBool true ''
|
auto_quoting = defaultNullOpts.mkBool true ''
|
||||||
Enable or disable auto quoting of searches.
|
Enable or disable auto quoting of searches.
|
||||||
|
|
|
||||||
|
|
@ -11,18 +11,6 @@ mkExtension {
|
||||||
name = "manix";
|
name = "manix";
|
||||||
package = "telescope-manix";
|
package = "telescope-manix";
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = [
|
|
||||||
"telescope"
|
|
||||||
"extensions"
|
|
||||||
"manix"
|
|
||||||
];
|
|
||||||
packageName = "manix";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
dependencies = [ "manix" ];
|
dependencies = [ "manix" ];
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
|
|
|
||||||
|
|
@ -9,12 +9,4 @@ lib.nixvim.plugins.mkVimPlugin {
|
||||||
maintainers = [ lib.maintainers.nickhu ];
|
maintainers = [ lib.maintainers.nickhu ];
|
||||||
|
|
||||||
dependencies = [ "texpresso" ];
|
dependencies = [ "texpresso" ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "texpresso";
|
|
||||||
packageName = "texpresso";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,14 +22,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
dependencies = [ "ripgrep" ];
|
dependencies = [ "ripgrep" ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "todo-comments";
|
|
||||||
packageName = "ripgrep";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
signs = defaultNullOpts.mkBool true "Show icons in the signs column.";
|
signs = defaultNullOpts.mkBool true "Show icons in the signs column.";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -180,34 +180,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
maintainers = [ lib.maintainers.khaneliman ];
|
maintainers = [ lib.maintainers.khaneliman ];
|
||||||
|
|
||||||
imports =
|
|
||||||
let
|
|
||||||
basePluginPath = [
|
|
||||||
"plugins"
|
|
||||||
"treesitter"
|
|
||||||
];
|
|
||||||
in
|
|
||||||
[
|
|
||||||
(lib.mkRenamedOptionModule (basePluginPath ++ [ "moduleConfig" ]) (
|
|
||||||
basePluginPath ++ [ "settings" ]
|
|
||||||
))
|
|
||||||
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "treesitter";
|
|
||||||
packageName = "gcc";
|
|
||||||
})
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "treesitter";
|
|
||||||
packageName = "nodejs";
|
|
||||||
})
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "treesitter";
|
|
||||||
packageName = "tree-sitter";
|
|
||||||
oldPackageName = "treesitter";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
dependencies = lib.map (name: {
|
dependencies = lib.map (name: {
|
||||||
inherit name;
|
inherit name;
|
||||||
enable = !config.plugins.treesitter.nixGrammars;
|
enable = !config.plugins.treesitter.nixGrammars;
|
||||||
|
|
|
||||||
|
|
@ -10,18 +10,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "typst-preview";
|
|
||||||
packageName = "tinymist";
|
|
||||||
})
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "typst-preview";
|
|
||||||
packageName = "websocat";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"tinymist"
|
"tinymist"
|
||||||
"websocat"
|
"websocat"
|
||||||
|
|
|
||||||
|
|
@ -12,14 +12,6 @@ lib.nixvim.plugins.mkVimPlugin {
|
||||||
|
|
||||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "typst-vim";
|
|
||||||
packageName = "typst";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
dependencies = [ "typst" ];
|
dependencies = [ "typst" ];
|
||||||
|
|
||||||
extraOptions = {
|
extraOptions = {
|
||||||
|
|
|
||||||
|
|
@ -14,43 +14,6 @@ lib.nixvim.plugins.mkVimPlugin {
|
||||||
|
|
||||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
|
|
||||||
# TODO: Added 2024-12-16; remove after 25.05
|
|
||||||
optionsRenamedToSettings = import ./renamed-options.nix;
|
|
||||||
imports =
|
|
||||||
let
|
|
||||||
basePluginPath = [
|
|
||||||
"plugins"
|
|
||||||
"vim-matchup"
|
|
||||||
];
|
|
||||||
in
|
|
||||||
[
|
|
||||||
(lib.mkRenamedOptionModule
|
|
||||||
(
|
|
||||||
basePluginPath
|
|
||||||
++ [
|
|
||||||
"matchParen"
|
|
||||||
"deffered"
|
|
||||||
]
|
|
||||||
)
|
|
||||||
(
|
|
||||||
basePluginPath
|
|
||||||
++ [
|
|
||||||
"settings"
|
|
||||||
"matchparen_deferred"
|
|
||||||
]
|
|
||||||
)
|
|
||||||
)
|
|
||||||
]
|
|
||||||
++ (lib.nixvim.mkSettingsRenamedOptionModules (basePluginPath ++ [ "treesitterIntegration" ])
|
|
||||||
(basePluginPath ++ [ "treesitter" ])
|
|
||||||
[
|
|
||||||
"enable"
|
|
||||||
"disable"
|
|
||||||
"disableVirtualText"
|
|
||||||
"includeMatchWords"
|
|
||||||
]
|
|
||||||
);
|
|
||||||
|
|
||||||
extraOptions = {
|
extraOptions = {
|
||||||
treesitter = lib.nixvim.mkSettingsOption {
|
treesitter = lib.nixvim.mkSettingsOption {
|
||||||
description = ''
|
description = ''
|
||||||
|
|
|
||||||
|
|
@ -1,130 +0,0 @@
|
||||||
[
|
|
||||||
{
|
|
||||||
old = "enableSurround";
|
|
||||||
new = "surround_enabled";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
old = "enableTransmute";
|
|
||||||
new = "transmute_enabled";
|
|
||||||
}
|
|
||||||
"delimStopline"
|
|
||||||
{
|
|
||||||
old = "delimNoSkips";
|
|
||||||
new = "delim_noskips";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
old = [
|
|
||||||
"motion"
|
|
||||||
"enable"
|
|
||||||
];
|
|
||||||
new = "motion_enabled";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
old = [
|
|
||||||
"motion"
|
|
||||||
"cursorEnd"
|
|
||||||
];
|
|
||||||
new = "motion_cursor_end";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
old = [
|
|
||||||
"motion"
|
|
||||||
"overrideNPercent"
|
|
||||||
];
|
|
||||||
new = "motion_override_Npercent";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
old = [
|
|
||||||
"textObj"
|
|
||||||
"enable"
|
|
||||||
];
|
|
||||||
new = "text_obj_enabled";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
old = [
|
|
||||||
"textObj"
|
|
||||||
"linewiseOperators"
|
|
||||||
];
|
|
||||||
new = "text_obj_linewise_operators";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
old = [
|
|
||||||
"matchParen"
|
|
||||||
"enable"
|
|
||||||
];
|
|
||||||
new = "matchparen_enabled";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
old = [
|
|
||||||
"matchParen"
|
|
||||||
"fallback"
|
|
||||||
];
|
|
||||||
new = "matchparen_fallback";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
old = [
|
|
||||||
"matchParen"
|
|
||||||
"singleton"
|
|
||||||
];
|
|
||||||
new = "matchparen_singleton";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
old = [
|
|
||||||
"matchParen"
|
|
||||||
"offscreen"
|
|
||||||
];
|
|
||||||
new = "matchparen_offscreen";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
old = [
|
|
||||||
"matchParen"
|
|
||||||
"stopline"
|
|
||||||
];
|
|
||||||
new = "matchparen_stopline";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
old = [
|
|
||||||
"matchParen"
|
|
||||||
"timeout"
|
|
||||||
];
|
|
||||||
new = "matchparen_timeout";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
old = [
|
|
||||||
"matchParen"
|
|
||||||
"insertTimeout"
|
|
||||||
];
|
|
||||||
new = "matchparen_insert_timeout";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
old = [
|
|
||||||
"matchParen"
|
|
||||||
"deferred"
|
|
||||||
"enable"
|
|
||||||
];
|
|
||||||
new = "matchparen_deferred";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
old = [
|
|
||||||
"matchParen"
|
|
||||||
"deferred"
|
|
||||||
"showDelay"
|
|
||||||
];
|
|
||||||
new = "matchparen_deferred_show_delay";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
old = [
|
|
||||||
"matchParen"
|
|
||||||
"deferred"
|
|
||||||
"hideDelay"
|
|
||||||
];
|
|
||||||
new = "matchparen_deferred_hide_delay";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
old = [
|
|
||||||
"matchParen"
|
|
||||||
"hiSurroundAlways"
|
|
||||||
];
|
|
||||||
new = "matchparen_deferred_hi_surround_always";
|
|
||||||
}
|
|
||||||
]
|
|
||||||
|
|
@ -8,14 +8,6 @@ lib.nixvim.plugins.mkVimPlugin {
|
||||||
|
|
||||||
dependencies = [ "tmux" ];
|
dependencies = [ "tmux" ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "tmux";
|
|
||||||
packageName = "tmux";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
settingsOptions = import ./settings-options.nix lib;
|
settingsOptions = import ./settings-options.nix lib;
|
||||||
|
|
||||||
settingsExample = {
|
settingsExample = {
|
||||||
|
|
|
||||||
|
|
@ -14,14 +14,6 @@ lib.nixvim.plugins.neovim.mkNeovimPlugin {
|
||||||
|
|
||||||
dependencies = [ "wezterm" ];
|
dependencies = [ "wezterm" ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "wezterm";
|
|
||||||
packageName = "wezterm";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
create_commands = defaultNullOpts.mkBool true ''
|
create_commands = defaultNullOpts.mkBool true ''
|
||||||
Whether to create plugin commands.
|
Whether to create plugin commands.
|
||||||
|
|
|
||||||
|
|
@ -22,14 +22,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
dependencies = [ "yazi" ];
|
dependencies = [ "yazi" ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "yazi";
|
|
||||||
packageName = "yazi";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
log_level = defaultNullOpts.mkLogLevel' {
|
log_level = defaultNullOpts.mkLogLevel' {
|
||||||
pluginDefault = "off";
|
pluginDefault = "off";
|
||||||
|
|
|
||||||
|
|
@ -13,14 +13,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "zk";
|
|
||||||
packageName = "zk";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
dependencies = [ "zk" ];
|
dependencies = [ "zk" ];
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
|
|
|
||||||
|
|
@ -53,13 +53,6 @@ let
|
||||||
pluginName = "cmp-fish";
|
pluginName = "cmp-fish";
|
||||||
sourceName = "fish";
|
sourceName = "fish";
|
||||||
|
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = "cmp-fish";
|
|
||||||
packageName = "fish";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
dependencies.fish.enable = lib.mkDefault true;
|
dependencies.fish.enable = lib.mkDefault true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -15,17 +15,6 @@ let
|
||||||
settings = cfg: { dart = cfg; };
|
settings = cfg: { dart = cfg; };
|
||||||
};
|
};
|
||||||
gopls = {
|
gopls = {
|
||||||
imports = [
|
|
||||||
# TODO: added 2025-04-07, remove after 25.05
|
|
||||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
|
||||||
plugin = [
|
|
||||||
"lsp"
|
|
||||||
"servers"
|
|
||||||
"gopls"
|
|
||||||
];
|
|
||||||
packageName = "go";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
dependencies.go.enable = lib.mkDefault true;
|
dependencies.go.enable = lib.mkDefault true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue