forked from nix-community/nixvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpoimandres.nix
72 lines (60 loc) · 1.72 KB
/
poimandres.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
lib,
...
}:
let
inherit (lib.nixvim) defaultNullOpts mkNullOrOption;
in
lib.nixvim.neovim-plugin.mkNeovimPlugin {
name = "poimandres";
isColorscheme = true;
originalName = "poimandres.nvim";
package = "poimandres-nvim";
maintainers = [ lib.maintainers.GaetanLepage ];
# TODO introduced 2024-04-15: remove 2024-06-15
deprecateExtraOptions = true;
optionsRenamedToSettings = [
"boldVertSplit"
"darkVariant"
"disableBackground"
"disableFloatBackground"
"disableItalics"
"dimNcBackground"
"groups"
"highlightGroups"
];
settingsOptions = {
bold_vert_split = defaultNullOpts.mkBool false ''
Use bold vertical separators.
'';
dim_nc_background = defaultNullOpts.mkBool false ''
Dim 'non-current' window backgrounds.
'';
disable_background = defaultNullOpts.mkBool false ''
Whether to disable the background.
'';
disable_float_background = defaultNullOpts.mkBool false ''
Whether to disable the background for floats.
'';
disable_italics = defaultNullOpts.mkBool false ''
Whether to disable italics.
'';
dark_variant = defaultNullOpts.mkStr "main" ''
Dark variant.
'';
groups = mkNullOrOption (with lib.types; attrsOf (either str (attrsOf str))) ''
Which color to use for each group.
default: see [source](https://github.com/olivercederborg/poimandres.nvim/blob/main/lua/poimandres/init.lua)
'';
highlight_groups = defaultNullOpts.mkAttrsOf lib.types.str { } ''
Highlight groups.
'';
};
settingsExample = {
bold_vert_split = false;
dim_nc_background = true;
disable_background = false;
disable_float_background = false;
disable_italics = true;
};
}