nix-community.nixvim/plugins/colorschemes/cyberdream.nix

89 lines
2 KiB
Nix
Raw Normal View History

2024-05-01 01:46:25 +02:00
{
config,
lib,
helpers,
pkgs,
...
}:
with lib;
2024-05-05 19:39:35 +02:00
helpers.neovim-plugin.mkNeovimPlugin config {
name = "cyberdream";
isColorscheme = true;
originalName = "cyberdream.nvim";
defaultPackage = pkgs.vimPlugins.cyberdream-nvim;
2024-05-01 01:46:25 +02:00
2024-05-05 19:39:35 +02:00
maintainers = [ helpers.maintainers.AndresBermeoMarinelli ];
2024-05-01 01:46:25 +02:00
2024-05-05 19:39:35 +02:00
settingsOptions = {
transparent = helpers.defaultNullOpts.mkBool false ''
Enable transparent background.
'';
2024-05-01 01:46:25 +02:00
2024-05-05 19:39:35 +02:00
italic_comments = helpers.defaultNullOpts.mkBool false ''
Enable italics comments.
'';
2024-05-01 01:46:25 +02:00
2024-05-05 19:39:35 +02:00
hide_fillchars = helpers.defaultNullOpts.mkBool false ''
Replace all fillchars with ' ' for the ultimate clean look.
'';
2024-05-01 01:46:25 +02:00
2024-05-05 19:39:35 +02:00
borderless_telescope = helpers.defaultNullOpts.mkBool true ''
Modern borderless telescope theme.
'';
2024-05-01 01:46:25 +02:00
2024-05-05 19:39:35 +02:00
terminal_colors = helpers.defaultNullOpts.mkBool true ''
Set terminal colors used in `:terminal`.
'';
2024-05-01 01:46:25 +02:00
2024-05-05 19:39:35 +02:00
theme = {
highlights = helpers.defaultNullOpts.mkAttrsOf helpers.nixvimTypes.highlight "{}" ''
Highlight groups to override, adding new groups is also possible.
See `:h highlight-groups` for a list of highlight groups.
2024-05-01 01:46:25 +02:00
2024-05-05 19:39:35 +02:00
Example:
2024-05-01 01:46:25 +02:00
2024-05-05 19:39:35 +02:00
```nix
{
Comment = {
fg = "#696969";
bg = "NONE";
italic = true;
};
}
```
2024-05-01 01:46:25 +02:00
2024-05-05 19:39:35 +02:00
Complete list can be found in `lua/cyberdream/theme.lua` in upstream repository.
'';
2024-05-01 01:46:25 +02:00
2024-05-05 19:39:35 +02:00
colors = helpers.defaultNullOpts.mkAttrsOf types.str "{}" ''
Override the default colors used.
2024-05-01 01:46:25 +02:00
2024-05-05 19:39:35 +02:00
For a full list of colors, see upstream documentation.
'';
2024-05-01 01:46:25 +02:00
};
2024-05-05 19:39:35 +02:00
};
2024-05-01 01:46:25 +02:00
2024-05-05 19:39:35 +02:00
settingsExample = {
transparent = true;
italic_comments = true;
hide_fillchars = true;
borderless_telescope = true;
terminal_colors = true;
2024-05-01 01:46:25 +02:00
2024-05-05 19:39:35 +02:00
theme = {
highlights = {
Comment = {
fg = "#696969";
bg = "NONE";
italic = true;
2024-05-01 01:46:25 +02:00
};
};
2024-05-05 19:39:35 +02:00
colors = {
bg = "#000000";
green = "#00ff00";
magenta = "#ff00ff";
};
2024-05-01 01:46:25 +02:00
};
2024-05-05 19:39:35 +02:00
};
}