mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-23 18:59:40 +01:00
colorschemes/modus: migrate to by-name
This commit is contained in:
parent
36103c436c
commit
0844790396
3 changed files with 0 additions and 1 deletions
|
|
@ -1,113 +0,0 @@
|
|||
{
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib.nixvim) defaultNullOpts;
|
||||
in
|
||||
lib.nixvim.plugins.mkNeovimPlugin {
|
||||
name = "modus";
|
||||
moduleName = "modus-themes";
|
||||
package = "modus-themes-nvim";
|
||||
isColorscheme = true;
|
||||
|
||||
maintainers = [ lib.maintainers.nwjsmith ];
|
||||
|
||||
settingsOptions = {
|
||||
style =
|
||||
defaultNullOpts.mkEnumFirstDefault
|
||||
[
|
||||
"modus_operandi"
|
||||
"modus_vivendi"
|
||||
]
|
||||
''
|
||||
The theme comes in a light `modus_operandi` style and a dark `modus_vivendi` style.
|
||||
'';
|
||||
|
||||
variant =
|
||||
defaultNullOpts.mkEnumFirstDefault
|
||||
[
|
||||
"default"
|
||||
"tinted"
|
||||
"deuteranopia"
|
||||
"tritanopia"
|
||||
]
|
||||
''
|
||||
Styles come in four variants:
|
||||
|
||||
- `default` is the plugin's main style designed to cover a broad range of needs.
|
||||
- `tinted` tones down intensity and provides more color variety.
|
||||
- `deuteranopia` is optimized for users with red-green color deficiency.
|
||||
- `tritanopia` is optimized for users with blue-yellow color deficiency.
|
||||
'';
|
||||
|
||||
transparent = defaultNullOpts.mkBool false ''
|
||||
Disable setting the background color.
|
||||
'';
|
||||
|
||||
hide_inactive_statusline = defaultNullOpts.mkBool false ''
|
||||
Hide statuslines in inactive windows.
|
||||
'';
|
||||
|
||||
dim_inactive = defaultNullOpts.mkBool false ''
|
||||
Dims inactive windows.
|
||||
'';
|
||||
|
||||
styles = {
|
||||
comments = defaultNullOpts.mkHighlight { italic = true; } "" ''
|
||||
Define comments highlight properties.
|
||||
'';
|
||||
|
||||
keywords = defaultNullOpts.mkHighlight { italic = true; } "" ''
|
||||
Define keywords highlight properties.
|
||||
'';
|
||||
|
||||
functions = defaultNullOpts.mkHighlight { } "" ''
|
||||
Define functions highlight properties.
|
||||
'';
|
||||
|
||||
variables = defaultNullOpts.mkHighlight { } "" ''
|
||||
Define variables highlight properties.
|
||||
'';
|
||||
};
|
||||
|
||||
on_colors = defaultNullOpts.mkLuaFn "function(colors) end" ''
|
||||
Override specific color groups to use other groups or a hex color.
|
||||
Function will be called with a `ColorScheme` table.
|
||||
|
||||
```
|
||||
@param colors ColorScheme
|
||||
```
|
||||
'';
|
||||
|
||||
on_highlights = defaultNullOpts.mkLuaFn "function(highlights, colors) end" ''
|
||||
Override specific highlights to use other groups or a hex color.
|
||||
Function will be called with a `Highlights` and `ColorScheme` table.
|
||||
|
||||
```
|
||||
@param highlights Highlights
|
||||
@param colors ColorScheme
|
||||
```
|
||||
'';
|
||||
};
|
||||
|
||||
settingsExample = {
|
||||
style = "auto";
|
||||
variant = "default";
|
||||
transparent = false;
|
||||
dim_inactive = false;
|
||||
hide_inactive_statusline = false;
|
||||
styles = {
|
||||
comments.italic = true;
|
||||
keywords.italic = true;
|
||||
functions = { };
|
||||
variables = { };
|
||||
};
|
||||
on_colors = "function(colors) end";
|
||||
on_highlights = "function(highlights, colors) end";
|
||||
};
|
||||
|
||||
extraConfig = {
|
||||
opts.termguicolors = lib.mkDefault true;
|
||||
};
|
||||
}
|
||||
|
|
@ -2,7 +2,6 @@
|
|||
imports = [
|
||||
./cmp
|
||||
|
||||
./colorschemes/modus.nix
|
||||
./colorschemes/monokai-pro.nix
|
||||
./colorschemes/moonfly.nix
|
||||
./colorschemes/nightfox.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue