1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-16 23:42:47 +01:00
nixvim/plugins/by-name/baleia/default.nix
saygo-png c4b27080a6 treewide: infer packPathName menial work
Signed-off-by: saygo-png <saygo.mail@proton.me>
2025-09-27 23:49:59 +00:00

55 lines
1.2 KiB
Nix

{ lib, ... }:
let
inherit (lib.nixvim) defaultNullOpts;
in
lib.nixvim.plugins.mkNeovimPlugin {
name = "baleia";
package = "baleia-nvim";
description = "A Neovim plugin for colorizing text with ANSI escape sequences.";
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;
};
}