plugins/baleia-nvim: init

This commit is contained in:
Alison Jenkins 2024-02-14 18:38:55 +00:00 committed by Gaétan Lepage
parent 38a2018904
commit 51f6f562d1
3 changed files with 69 additions and 0 deletions

View file

@ -112,6 +112,7 @@
./utils/auto-session.nix
./utils/autoclose.nix
./utils/bacon.nix
./utils/baleia.nix
./utils/better-escape.nix
./utils/clipboard-image.nix
./utils/comment-nvim.nix

48
plugins/utils/baleia.nix Normal file
View file

@ -0,0 +1,48 @@
{
helpers,
pkgs,
config,
...
}:
helpers.neovim-plugin.mkNeovimPlugin config {
name = "baleia";
originalName = "baleia.nvim";
defaultPackage = pkgs.vimPlugins.baleia-nvim;
maintainers = [helpers.maintainers.alisonjenkins];
settingsOptions = {
async = helpers.defaultNullOpts.mkBool true ''
Highlight asynchronously.
'';
colors = helpers.defaultNullOpts.mkStr "NR_8" ''
Table mapping 256 color codes to vim colors.
'';
line_starts_at = helpers.defaultNullOpts.mkInt 1 ''
At which column start colorizing.
'';
log = helpers.defaultNullOpts.mkEnum ["ERROR" "WARN" "INFO" "DEBUG"] "INFO" ''
Log level, possible values are ERROR, WARN, INFO or DEBUG.
'';
name = helpers.defaultNullOpts.mkStr "BaleiaColors" ''
Prefix used to name highlight groups.
'';
strip_ansi_codes = helpers.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;
};
}

View file

@ -0,0 +1,20 @@
{
empty = {
plugins.baleia.enable = true;
};
example = {
plugins.baleia = {
enable = true;
settings = {
async = true;
colors = "NR_8";
line_starts_at = 1;
log = "INFO";
name = "BaleiaColors";
strip_ansi_codes = false;
};
};
};
}