mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
colorschemes/gruvbox: use simpler syntax
This commit is contained in:
parent
e7700cea5e
commit
185ddb62de
1 changed files with 50 additions and 56 deletions
|
@ -4,63 +4,57 @@
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
|
helpers.neovim-plugin.mkNeovimPlugin config {
|
||||||
|
name = "gruvbox";
|
||||||
|
namespace = "colorschemes";
|
||||||
|
originalName = "gruvbox.nvim";
|
||||||
|
defaultPackage = pkgs.vimPlugins.gruvbox-nvim;
|
||||||
|
|
||||||
|
maintainers = [lib.maintainers.GaetanLepage];
|
||||||
|
|
||||||
|
# Introduced January 31 2024
|
||||||
|
# TODO remove in early March 2024.
|
||||||
imports =
|
imports =
|
||||||
|
map
|
||||||
|
(
|
||||||
|
optionName:
|
||||||
|
lib.mkRemovedOptionModule
|
||||||
|
["colorschemes" "gruvbox" optionName]
|
||||||
|
"Please use `colorschemes.gruvbox.settings.${helpers.toSnakeCase optionName}` instead."
|
||||||
|
)
|
||||||
[
|
[
|
||||||
(
|
"italics"
|
||||||
helpers.neovim-plugin.mkNeovimPlugin config {
|
"bold"
|
||||||
name = "gruvbox";
|
"underline"
|
||||||
namespace = "colorschemes";
|
"undercurl"
|
||||||
originalName = "gruvbox.nvim";
|
"contrastDark"
|
||||||
defaultPackage = pkgs.vimPlugins.gruvbox-nvim;
|
"contrastLight"
|
||||||
|
"highlightSearchCursor"
|
||||||
|
"numberColumn"
|
||||||
|
"signColumn"
|
||||||
|
"colorColumn"
|
||||||
|
"vertSplitColor"
|
||||||
|
"italicizeComments"
|
||||||
|
"italicizeStrings"
|
||||||
|
"invertSelection"
|
||||||
|
"invertSigns"
|
||||||
|
"invertIndentGuides"
|
||||||
|
"invertTabline"
|
||||||
|
"improvedStrings"
|
||||||
|
"improvedWarnings"
|
||||||
|
"transparentBg"
|
||||||
|
"trueColor"
|
||||||
|
];
|
||||||
|
|
||||||
settingsExample = {
|
settingsExample = {
|
||||||
terminal_colors = true;
|
terminal_colors = true;
|
||||||
palette_overrides = {
|
palette_overrides = {
|
||||||
dark1 = "#323232";
|
dark1 = "#323232";
|
||||||
dark2 = "#383330";
|
dark2 = "#383330";
|
||||||
dark3 = "#323232";
|
dark3 = "#323232";
|
||||||
bright_blue = "#5476b2";
|
bright_blue = "#5476b2";
|
||||||
bright_purple = "#fb4934";
|
bright_purple = "#fb4934";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
maintainers = [lib.maintainers.GaetanLepage];
|
|
||||||
}
|
|
||||||
)
|
|
||||||
]
|
|
||||||
# Introduced January 31 2024
|
|
||||||
# TODO remove in early March 2024.
|
|
||||||
++ (
|
|
||||||
map
|
|
||||||
(
|
|
||||||
optionName:
|
|
||||||
lib.mkRemovedOptionModule
|
|
||||||
["colorschemes" "gruvbox" optionName]
|
|
||||||
"Please use `colorschemes.gruvbox.settings.${helpers.toSnakeCase optionName}` instead."
|
|
||||||
)
|
|
||||||
[
|
|
||||||
"italics"
|
|
||||||
"bold"
|
|
||||||
"underline"
|
|
||||||
"undercurl"
|
|
||||||
"contrastDark"
|
|
||||||
"contrastLight"
|
|
||||||
"highlightSearchCursor"
|
|
||||||
"numberColumn"
|
|
||||||
"signColumn"
|
|
||||||
"colorColumn"
|
|
||||||
"vertSplitColor"
|
|
||||||
"italicizeComments"
|
|
||||||
"italicizeStrings"
|
|
||||||
"invertSelection"
|
|
||||||
"invertSigns"
|
|
||||||
"invertIndentGuides"
|
|
||||||
"invertTabline"
|
|
||||||
"improvedStrings"
|
|
||||||
"improvedWarnings"
|
|
||||||
"transparentBg"
|
|
||||||
"trueColor"
|
|
||||||
]
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue