mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-10 09:14:31 +02:00
We used to only think of it as the plugin repo's name, but we have been needing to use it for the name of the plugin's packpath location.
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{ lib, ... }:
|
|
let
|
|
inherit (lib.nixvim) defaultNullOpts;
|
|
in
|
|
lib.nixvim.neovim-plugin.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;
|
|
};
|
|
}
|