mirror of
https://github.com/nix-community/nixvim.git
synced 2026-08-24 10:14:03 -05:00
colorschemes/modus: replace deprecated variant option
Update the Modus settings schema, example, and test fixture to use the upstream variants table instead of the deprecated variant key.
This commit is contained in:
committed by
Gaétan Lepage
parent
4825cfe656
commit
637f4ef832
@@ -24,22 +24,31 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||||||
The theme comes in a light `modus_operandi` style and a dark `modus_vivendi` style.
|
The theme comes in a light `modus_operandi` style and a dark `modus_vivendi` style.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
variant =
|
variants = {
|
||||||
defaultNullOpts.mkEnumFirstDefault
|
modus_operandi =
|
||||||
[
|
defaultNullOpts.mkEnumFirstDefault
|
||||||
"default"
|
[
|
||||||
"tinted"
|
"default"
|
||||||
"deuteranopia"
|
"tinted"
|
||||||
"tritanopia"
|
"deuteranopia"
|
||||||
]
|
"tritanopia"
|
||||||
''
|
]
|
||||||
Styles come in four variants:
|
''
|
||||||
|
Variant to use for the `modus_operandi` style.
|
||||||
|
'';
|
||||||
|
|
||||||
- `default` is the plugin's main style designed to cover a broad range of needs.
|
modus_vivendi =
|
||||||
- `tinted` tones down intensity and provides more color variety.
|
defaultNullOpts.mkEnumFirstDefault
|
||||||
- `deuteranopia` is optimized for users with red-green color deficiency.
|
[
|
||||||
- `tritanopia` is optimized for users with blue-yellow color deficiency.
|
"default"
|
||||||
'';
|
"tinted"
|
||||||
|
"deuteranopia"
|
||||||
|
"tritanopia"
|
||||||
|
]
|
||||||
|
''
|
||||||
|
Variant to use for the `modus_vivendi` style.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
transparent = defaultNullOpts.mkBool false ''
|
transparent = defaultNullOpts.mkBool false ''
|
||||||
Disable setting the background color.
|
Disable setting the background color.
|
||||||
@@ -93,7 +102,10 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||||||
|
|
||||||
settingsExample = {
|
settingsExample = {
|
||||||
style = "auto";
|
style = "auto";
|
||||||
variant = "default";
|
variants = {
|
||||||
|
modus_operandi = "default";
|
||||||
|
modus_vivendi = "default";
|
||||||
|
};
|
||||||
transparent = false;
|
transparent = false;
|
||||||
dim_inactive = false;
|
dim_inactive = false;
|
||||||
hide_inactive_statusline = false;
|
hide_inactive_statusline = false;
|
||||||
|
|||||||
@@ -9,7 +9,10 @@
|
|||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
style = "modus_operandi";
|
style = "modus_operandi";
|
||||||
variant = "default";
|
variants = {
|
||||||
|
modus_operandi = "default";
|
||||||
|
modus_vivendi = "default";
|
||||||
|
};
|
||||||
transparent = false;
|
transparent = false;
|
||||||
dim_inactive = false;
|
dim_inactive = false;
|
||||||
hide_inactive_statusline = false;
|
hide_inactive_statusline = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user