mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{ lib, ... }:
|
|
let
|
|
inherit (lib.nixvim) defaultNullOpts;
|
|
in
|
|
lib.nixvim.plugins.mkNeovimPlugin {
|
|
name = "baleia";
|
|
packPathName = "baleia.nvim";
|
|
package = "baleia-nvim";
|
|
|
|
maintainers = [ lib.maintainers.alisonjenkins ];
|
|
|
|
settingsOptions = {
|
|
async = defaultNullOpts.mkBool true ''
|
|
Highlight asynchronously.
|
|
'';
|
|
|
|
colors = defaultNullOpts.mkStr "NR_8" ''
|
|
Table mapping 256 color codes to vim colors.
|
|
'';
|
|
|
|
line_starts_at = defaultNullOpts.mkInt 1 ''
|
|
At which column start colorizing.
|
|
'';
|
|
|
|
log =
|
|
defaultNullOpts.mkEnum
|
|
[
|
|
"ERROR"
|
|
"WARN"
|
|
"INFO"
|
|
"DEBUG"
|
|
]
|
|
"INFO"
|
|
''
|
|
Log level, possible values are ERROR, WARN, INFO or DEBUG.
|
|
'';
|
|
|
|
name = defaultNullOpts.mkStr "BaleiaColors" ''
|
|
Prefix used to name highlight groups.
|
|
'';
|
|
|
|
strip_ansi_codes = defaultNullOpts.mkBool true ''
|
|
Remove ANSI color codes from text.
|
|
'';
|
|
};
|
|
|
|
settingsExample = {
|
|
async = true;
|
|
colors = "NR_8";
|
|
line_starts_at = 1;
|
|
log = "INFO";
|
|
name = "BaleiaColors";
|
|
strip_ansi_codes = true;
|
|
};
|
|
}
|