1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-18 16:29:40 +01:00

colorschemes/dracula: migrate to by-name

This commit is contained in:
Heitor Augusto 2025-11-02 19:46:39 -03:00 committed by Gaétan Lepage
parent de5bca9f9a
commit 9c8623cfef
3 changed files with 0 additions and 1 deletions

View file

@ -1,75 +0,0 @@
{
lib,
...
}:
let
inherit (lib.nixvim) defaultNullOpts;
in
lib.nixvim.plugins.mkVimPlugin {
name = "dracula";
package = "dracula-vim";
isColorscheme = true;
globalPrefix = "dracula_";
maintainers = [ lib.maintainers.GaetanLepage ];
optionsRenamedToSettings = [
"bold"
"italic"
"underline"
"undercurl"
"fullSpecialAttrsSupport"
"highContrastDiff"
"inverse"
"colorterm"
];
settingsOptions = {
bold = defaultNullOpts.mkBool true ''
Include bold attributes in highlighting.
'';
italic = defaultNullOpts.mkBool true ''
Include italic attributes in highlighting.
'';
strikethrough = defaultNullOpts.mkBool true ''
Include strikethrough attributes in highlighting.
'';
underline = defaultNullOpts.mkBool true ''
Include underline attributes in highlighting.
'';
undercurl = defaultNullOpts.mkBool true ''
Include undercurl attributes in highlighting (only if `underline` is enabled).
'';
full_special_attrs_support = defaultNullOpts.mkBool false ''
Explicitly declare full support for special attributes.
On terminal emulators, set to `true` to allow `underline`/`undercurl` highlights without
changing the foreground color.
'';
high_contrast_diff = defaultNullOpts.mkBool false ''
Use high-contrast color when in diff mode.
'';
inverse = defaultNullOpts.mkBool true ''
Include inverse attributes in highlighting.
'';
colorterm = defaultNullOpts.mkBool true ''
Include background fill colors.
'';
};
settingsExample = {
italic = false;
colorterm = false;
};
extraConfig = {
opts.termguicolors = lib.mkDefault true;
};
}

View file

@ -2,7 +2,6 @@
imports = [
./cmp
./colorschemes/dracula.nix
./colorschemes/everforest.nix
./colorschemes/github-theme.nix
./colorschemes/gruvbox.nix