mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-29 14:28:27 +02:00
plugins/gitsigns: remove deprecated options
This commit is contained in:
parent
54d118869b
commit
7ac283f050
2 changed files with 41 additions and 106 deletions
|
@ -16,126 +16,51 @@ helpers.neovim-plugin.mkNeovimPlugin config {
|
|||
# TODO: introduced 2024-03-12, remove on 2024-05-12
|
||||
deprecateExtraOptions = true;
|
||||
optionsRenamedToSettings = [
|
||||
[
|
||||
"signs"
|
||||
"add"
|
||||
"hl"
|
||||
]
|
||||
[
|
||||
"signs"
|
||||
"add"
|
||||
"text"
|
||||
]
|
||||
[
|
||||
"signs"
|
||||
"add"
|
||||
"numhl"
|
||||
]
|
||||
[
|
||||
"signs"
|
||||
"add"
|
||||
"linehl"
|
||||
]
|
||||
[
|
||||
"signs"
|
||||
"add"
|
||||
"showCount"
|
||||
]
|
||||
[
|
||||
"signs"
|
||||
"change"
|
||||
"hl"
|
||||
]
|
||||
[
|
||||
"signs"
|
||||
"change"
|
||||
"text"
|
||||
]
|
||||
[
|
||||
"signs"
|
||||
"change"
|
||||
"numhl"
|
||||
]
|
||||
[
|
||||
"signs"
|
||||
"change"
|
||||
"linehl"
|
||||
]
|
||||
[
|
||||
"signs"
|
||||
"change"
|
||||
"showCount"
|
||||
]
|
||||
[
|
||||
"signs"
|
||||
"topdelete"
|
||||
"hl"
|
||||
]
|
||||
[
|
||||
"signs"
|
||||
"topdelete"
|
||||
"text"
|
||||
]
|
||||
[
|
||||
"signs"
|
||||
"topdelete"
|
||||
"numhl"
|
||||
]
|
||||
[
|
||||
"signs"
|
||||
"topdelete"
|
||||
"linehl"
|
||||
]
|
||||
[
|
||||
"signs"
|
||||
"topdelete"
|
||||
"showCount"
|
||||
]
|
||||
[
|
||||
"signs"
|
||||
"changedelete"
|
||||
"hl"
|
||||
]
|
||||
[
|
||||
"signs"
|
||||
"changedelete"
|
||||
"text"
|
||||
]
|
||||
[
|
||||
"signs"
|
||||
"changedelete"
|
||||
"numhl"
|
||||
]
|
||||
[
|
||||
"signs"
|
||||
"changedelete"
|
||||
"linehl"
|
||||
]
|
||||
[
|
||||
"signs"
|
||||
"changedelete"
|
||||
"showCount"
|
||||
]
|
||||
[
|
||||
"signs"
|
||||
"untracked"
|
||||
"hl"
|
||||
]
|
||||
[
|
||||
"signs"
|
||||
"untracked"
|
||||
"text"
|
||||
]
|
||||
[
|
||||
"signs"
|
||||
"untracked"
|
||||
"numhl"
|
||||
]
|
||||
[
|
||||
"signs"
|
||||
"untracked"
|
||||
"linehl"
|
||||
]
|
||||
[
|
||||
"signs"
|
||||
"untracked"
|
||||
|
@ -195,10 +120,6 @@ helpers.neovim-plugin.mkNeovimPlugin config {
|
|||
"virtTextPriority"
|
||||
]
|
||||
"trouble"
|
||||
[
|
||||
"yadm"
|
||||
"enable"
|
||||
]
|
||||
"wordDiff"
|
||||
"debugMode"
|
||||
];
|
||||
|
@ -209,8 +130,41 @@ helpers.neovim-plugin.mkNeovimPlugin config {
|
|||
"gitsigns"
|
||||
];
|
||||
settingsPath = basePluginPaths ++ [ "settings" ];
|
||||
|
||||
highlights = {
|
||||
add = "Add";
|
||||
change = "Change";
|
||||
delete = "Delete";
|
||||
topdelete = "Topdelete";
|
||||
changedelete = "Changedelete";
|
||||
untracked = "Untracked";
|
||||
};
|
||||
|
||||
subHighlights = {
|
||||
hl = "";
|
||||
linehl = "Ln";
|
||||
numhl = "Nr";
|
||||
};
|
||||
|
||||
highlightRemovals = flatten (
|
||||
mapAttrsToList (
|
||||
opt: hlg:
|
||||
mapAttrsToList (subOpt: subHlg: {
|
||||
optionPath = settingsPath ++ [
|
||||
"signs"
|
||||
opt
|
||||
subOpt
|
||||
];
|
||||
hlg = "GitSigns${hlg}${subHlg}";
|
||||
}) subHighlights
|
||||
) highlights
|
||||
);
|
||||
in
|
||||
[
|
||||
(map (
|
||||
{ optionPath, hlg }:
|
||||
helpers.mkDeprecatedSubOptionModule optionPath "Please define the `${hlg}` highlight group instead."
|
||||
) highlightRemovals)
|
||||
++ [
|
||||
(mkRenamedOptionModule (
|
||||
basePluginPaths
|
||||
++ [
|
||||
|
@ -278,6 +232,13 @@ helpers.neovim-plugin.mkNeovimPlugin config {
|
|||
"nonCommitted"
|
||||
]
|
||||
) (settingsPath ++ [ "current_line_blame_formatter_nc" ]))
|
||||
(helpers.mkDeprecatedSubOptionModule (
|
||||
settingsPath
|
||||
++ [
|
||||
"yadm"
|
||||
"enable"
|
||||
]
|
||||
) "yadm support was removed upstream.")
|
||||
];
|
||||
|
||||
extraOptions = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue