mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
plugins/fidget: migrate to mkNeovimPlugin
This commit is contained in:
parent
1e564fae7d
commit
038f5656d8
2 changed files with 491 additions and 550 deletions
File diff suppressed because it is too large
Load diff
136
plugins/by-name/fidget/deprecations.nix
Normal file
136
plugins/by-name/fidget/deprecations.nix
Normal file
|
@ -0,0 +1,136 @@
|
|||
{ lib, ... }:
|
||||
let
|
||||
inherit (lib) mkRemovedOptionModule;
|
||||
in
|
||||
{
|
||||
imports =
|
||||
map
|
||||
(
|
||||
oldOption:
|
||||
mkRemovedOptionModule
|
||||
[
|
||||
"plugins"
|
||||
"fidget"
|
||||
oldOption
|
||||
]
|
||||
''
|
||||
Nixvim: The fidget.nvim plugin has been completely rewritten. Hence, the options have changed.
|
||||
Please, take a look at the updated documentation and adapt your configuration accordingly.
|
||||
|
||||
> https://github.com/j-hui/fidget.nvim
|
||||
''
|
||||
)
|
||||
[
|
||||
"text"
|
||||
"align"
|
||||
"timer"
|
||||
"window"
|
||||
"fmt"
|
||||
"sources"
|
||||
"debug"
|
||||
];
|
||||
|
||||
optionsRenamedToSettings =
|
||||
let
|
||||
progressOptions = [
|
||||
"pollRate"
|
||||
"suppressOnInsert"
|
||||
"ignoreDoneAlready"
|
||||
"ignoreEmptyMessage"
|
||||
"notificationGroup"
|
||||
"clearOnDetach"
|
||||
"ignore"
|
||||
];
|
||||
progressDisplayOptions = [
|
||||
"renderLimit"
|
||||
"doneTtl"
|
||||
"doneIcon"
|
||||
"doneStyle"
|
||||
"progressTtl"
|
||||
"progressIcon"
|
||||
"progressStyle"
|
||||
"groupStyle"
|
||||
"iconStyle"
|
||||
"priority"
|
||||
"skipHistory"
|
||||
"formatMessage"
|
||||
"formatAnnote"
|
||||
"formatGroupName"
|
||||
"overrides"
|
||||
];
|
||||
notificationOptions = [
|
||||
"pollRate"
|
||||
"filter"
|
||||
"historySize"
|
||||
"overrideVimNotify"
|
||||
"configs"
|
||||
"redirect"
|
||||
];
|
||||
notificationViewOptions = [
|
||||
"stackUpwards"
|
||||
"iconSeparator"
|
||||
"groupSeparator"
|
||||
"groupSeparatorHl"
|
||||
];
|
||||
notificationWindowOptions = [
|
||||
"normalHl"
|
||||
"winblend"
|
||||
"border"
|
||||
"borderHl"
|
||||
"zindex"
|
||||
"maxWidth"
|
||||
"maxHeight"
|
||||
"xPadding"
|
||||
"yPadding"
|
||||
"align"
|
||||
"relative"
|
||||
];
|
||||
in
|
||||
[
|
||||
[
|
||||
"progress"
|
||||
"lsp"
|
||||
"progressRingbufSize"
|
||||
]
|
||||
[
|
||||
"integration"
|
||||
"nvim-tree"
|
||||
"enable"
|
||||
]
|
||||
[
|
||||
"logger"
|
||||
"level"
|
||||
]
|
||||
[
|
||||
"logger"
|
||||
"floatPrecision"
|
||||
]
|
||||
[
|
||||
"logger"
|
||||
"path"
|
||||
]
|
||||
]
|
||||
++ map (oldOption: [
|
||||
"progress"
|
||||
oldOption
|
||||
]) progressOptions
|
||||
++ map (oldOption: [
|
||||
"progress"
|
||||
"display"
|
||||
oldOption
|
||||
]) progressDisplayOptions
|
||||
++ map (oldOption: [
|
||||
"notification"
|
||||
oldOption
|
||||
]) notificationOptions
|
||||
++ map (oldOption: [
|
||||
"notification"
|
||||
"view"
|
||||
oldOption
|
||||
]) notificationViewOptions
|
||||
++ map (oldOption: [
|
||||
"notification"
|
||||
"window"
|
||||
oldOption
|
||||
]) notificationWindowOptions;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue