2023-09-10 15:59:46 +05:30
|
|
|
{
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
let
|
2024-12-13 16:26:54 +01:00
|
|
|
inherit (lib.nixvim) defaultNullOpts;
|
2023-09-10 15:59:46 +05:30
|
|
|
in
|
2024-12-22 09:58:27 +00:00
|
|
|
lib.nixvim.plugins.mkVimPlugin {
|
2024-12-13 16:26:54 +01:00
|
|
|
name = "dracula";
|
|
|
|
package = "dracula-vim";
|
|
|
|
isColorscheme = true;
|
|
|
|
globalPrefix = "dracula_";
|
2023-09-10 15:59:46 +05:30
|
|
|
|
2024-12-13 16:26:54 +01:00
|
|
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
2023-09-10 15:59:46 +05:30
|
|
|
|
2024-12-13 16:26:54 +01:00
|
|
|
optionsRenamedToSettings = [
|
|
|
|
"bold"
|
|
|
|
"italic"
|
|
|
|
"underline"
|
|
|
|
"undercurl"
|
|
|
|
"fullSpecialAttrsSupport"
|
|
|
|
"highContrastDiff"
|
|
|
|
"inverse"
|
|
|
|
"colorterm"
|
|
|
|
];
|
2023-09-10 15:59:46 +05:30
|
|
|
|
2024-12-13 16:26:54 +01:00
|
|
|
settingsOptions = {
|
|
|
|
bold = defaultNullOpts.mkBool true ''
|
|
|
|
Include bold attributes in highlighting.
|
|
|
|
'';
|
2023-09-10 15:59:46 +05:30
|
|
|
|
2024-12-13 16:26:54 +01:00
|
|
|
italic = defaultNullOpts.mkBool true ''
|
|
|
|
Include italic attributes in highlighting.
|
|
|
|
'';
|
2023-09-10 15:59:46 +05:30
|
|
|
|
2024-12-13 16:26:54 +01:00
|
|
|
strikethrough = defaultNullOpts.mkBool true ''
|
|
|
|
Include strikethrough attributes in highlighting.
|
|
|
|
'';
|
2023-09-10 15:59:46 +05:30
|
|
|
|
2024-12-13 16:26:54 +01:00
|
|
|
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.
|
|
|
|
'';
|
2023-09-10 15:59:46 +05:30
|
|
|
|
2024-12-13 16:26:54 +01:00
|
|
|
high_contrast_diff = defaultNullOpts.mkBool false ''
|
|
|
|
Use high-contrast color when in diff mode.
|
|
|
|
'';
|
2023-09-10 15:59:46 +05:30
|
|
|
|
2024-12-13 16:26:54 +01:00
|
|
|
inverse = defaultNullOpts.mkBool true ''
|
|
|
|
Include inverse attributes in highlighting.
|
|
|
|
'';
|
|
|
|
|
|
|
|
colorterm = defaultNullOpts.mkBool true ''
|
|
|
|
Include background fill colors.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
settingsExample = {
|
|
|
|
italic = false;
|
|
|
|
colorterm = false;
|
|
|
|
};
|
2023-09-10 15:59:46 +05:30
|
|
|
|
2024-12-13 16:26:54 +01:00
|
|
|
extraConfig = {
|
2024-08-22 10:03:02 -05:00
|
|
|
opts.termguicolors = lib.mkDefault true;
|
2023-09-10 15:59:46 +05:30
|
|
|
};
|
|
|
|
}
|