1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-17 16:02:48 +01:00

plugins: remove deprecations "after 24.11" or less

Signed-off-by: saygo-png <saygo.mail@proton.me>
This commit is contained in:
saygo-png 2025-10-18 03:34:02 +02:00 committed by Matt Sturgeon
parent be72c48997
commit 29ec33e1a8
86 changed files with 27 additions and 3578 deletions

View file

@ -1,7 +1,7 @@
{ lib, config, ... }:
let
inherit (lib) types;
inherit (lib.nixvim) defaultNullOpts mkSettingsRenamedOptionModules;
inherit (lib.nixvim) defaultNullOpts;
in
lib.nixvim.plugins.mkNeovimPlugin {
name = "bufferline";
@ -10,161 +10,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
maintainers = [ lib.maintainers.khaneliman ];
# TODO: introduced 2024-08-12: remove after 24.11
#
# NOTE: Old options are equivalent to `settings.options` and
# the old highlight options are equivalent to `settings.highlight`,
# therefore we can't just use `optionsRenamedToSettings`.
imports =
let
oldOptions = [
"mode"
"themable"
"numbers"
"bufferCloseIcon"
"modifiedIcon"
"closeIcon"
"closeCommand"
"leftMouseCommand"
"rightMouseCommand"
"middleMouseCommand"
"indicator"
"leftTruncMarker"
"rightTruncMarker"
"separatorStyle"
"nameFormatter"
"truncateNames"
"tabSize"
"maxNameLength"
"colorIcons"
"showBufferIcons"
"showBufferCloseIcons"
"getElementIcon"
"showCloseIcon"
"showTabIndicators"
"showDuplicatePrefix"
"enforceRegularTabs"
"alwaysShowBufferline"
"persistBufferSort"
"maxPrefixLength"
"sortBy"
"diagnostics"
"diagnosticsIndicator"
"offsets"
[
"groups"
"items"
]
[
"groups"
"options"
"toggleHiddenOnEnter"
]
[
"hover"
"enabled"
]
[
"hover"
"reveal"
]
[
"hover"
"delay"
]
[
"debug"
"logging"
]
"customFilter"
{
old = "diagnosticsUpdateInInsert";
new = [
"diagnostics"
"update_in_insert"
];
}
];
oldHighlightOptions = [
"fill"
"background"
"tab"
"tabSelected"
"tabSeparator"
"tabSeparatorSelected"
"tabClose"
"closeButton"
"closeButtonVisible"
"closeButtonSelected"
"bufferVisible"
"bufferSelected"
"numbers"
"numbersVisible"
"numbersSelected"
"diagnostic"
"diagnosticVisible"
"diagnosticSelected"
"hint"
"hintVisible"
"hintSelected"
"hintDiagnostic"
"hintDiagnosticVisible"
"hintDiagnosticSelected"
"info"
"infoVisible"
"infoSelected"
"infoDiagnostic"
"infoDiagnosticVisible"
"infoDiagnosticSelected"
"warning"
"warningVisible"
"warningSelected"
"warningDiagnostic"
"warningDiagnosticVisible"
"warningDiagnosticSelected"
"error"
"errorVisible"
"errorSelected"
"errorDiagnostic"
"errorDiagnosticVisible"
"errorDiagnosticSelected"
"modified"
"modifiedVisible"
"modifiedSelected"
"duplicate"
"duplicateVisible"
"duplicateSelected"
"separator"
"separatorVisible"
"separatorSelected"
"indicatorVisible"
"indicatorSelected"
"pick"
"pickVisible"
"pickSelected"
"offsetSeparator"
{
old = "trunkMarker";
new = "trunc_marker";
}
];
basePluginPath = [
"plugins"
"bufferline"
];
settingsPath = basePluginPath ++ [ "settings" ];
optionsPath = settingsPath ++ [ "options" ];
oldHighlightsPath = basePluginPath ++ [ "highlights" ];
newHighlightsPath = settingsPath ++ [ "highlights" ];
in
[
(lib.mkRenamedOptionModule (basePluginPath ++ [ "extraOptions" ]) optionsPath)
]
++ mkSettingsRenamedOptionModules basePluginPath optionsPath oldOptions
++ mkSettingsRenamedOptionModules oldHighlightsPath newHighlightsPath oldHighlightOptions;
settingsOptions = {
options = {
mode =