nix-community.nixvim/plugins/by-name/baleia/default.nix
osbm a41559f093
Some checks are pending
Publish every Git push to main to FlakeHub / flakehub-publish (push) Waiting to run
Publish every git push to Flakestry / publish-flake (push) Waiting to run
Documentation / Version info (push) Waiting to run
Documentation / Build (push) Blocked by required conditions
Documentation / Combine builds (push) Blocked by required conditions
Documentation / Deploy (push) Blocked by required conditions
treewide: add plugin descriptions
2025-06-24 06:10:11 +00:00

56 lines
1.2 KiB
Nix

{ lib, ... }:
let
inherit (lib.nixvim) defaultNullOpts;
in
lib.nixvim.plugins.mkNeovimPlugin {
name = "baleia";
packPathName = "baleia.nvim";
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;
};
}