-
-
Notifications
You must be signed in to change notification settings - Fork 213
/
virt-column.nix
77 lines (69 loc) · 1.85 KB
/
virt-column.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
73
74
75
76
77
{
lib,
helpers,
pkgs,
config,
...
}:
with lib;
helpers.neovim-plugin.mkNeovimPlugin config {
name = "virt-column";
originalName = "virt-column.nvim";
defaultPackage = pkgs.vimPlugins.virt-column-nvim;
maintainers = [ helpers.maintainers.alisonjenkins ];
settingsOptions = {
enabled = helpers.defaultNullOpts.mkBool true ''
Enables or disables virt-column.
'';
char = helpers.defaultNullOpts.mkNullable (with types; either str (listOf str)) [ "┃" ] ''
Character, or list of characters, that get used to display the virtual column.
Each character has to have a display width of 0 or 1.
'';
virtcolumn = helpers.defaultNullOpts.mkStr "" ''
Comma-separated list of screen columns same syntax as `:help colorcolumn`.
'';
highlight = helpers.defaultNullOpts.mkNullable (with types; either str (listOf str)) "NonText" ''
Highlight group, or list of highlight groups, that get applied to the virtual column.
'';
exclude = {
filetypes = helpers.defaultNullOpts.mkListOf types.str [
"lspinfo"
"packer"
"checkhealth"
"help"
"man"
"TelescopePrompt"
"TelescopeResults"
] "List of `filetype`s for which virt-column is disabled.";
buftypes = helpers.defaultNullOpts.mkListOf types.str [
"nofile"
"quickfix"
"terminal"
"prompt"
] "List of `buftype`s for which virt-column is disabled.";
};
};
settingsExample = {
enabled = true;
char = "┃";
virtcolumn = "";
highlight = "NonText";
exclude = {
filetypes = [
"lspinfo"
"packer"
"checkhealth"
"help"
"man"
"TelescopePrompt"
"TelescopeResults"
];
buftypes = [
"nofile"
"quickfix"
"terminal"
"prompt"
];
};
};
}