mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
plugins/baleia-nvim: init
This commit is contained in:
parent
38a2018904
commit
51f6f562d1
3 changed files with 69 additions and 0 deletions
|
@ -112,6 +112,7 @@
|
||||||
./utils/auto-session.nix
|
./utils/auto-session.nix
|
||||||
./utils/autoclose.nix
|
./utils/autoclose.nix
|
||||||
./utils/bacon.nix
|
./utils/bacon.nix
|
||||||
|
./utils/baleia.nix
|
||||||
./utils/better-escape.nix
|
./utils/better-escape.nix
|
||||||
./utils/clipboard-image.nix
|
./utils/clipboard-image.nix
|
||||||
./utils/comment-nvim.nix
|
./utils/comment-nvim.nix
|
||||||
|
|
48
plugins/utils/baleia.nix
Normal file
48
plugins/utils/baleia.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
20
tests/test-sources/plugins/utils/baleia.nix
Normal file
20
tests/test-sources/plugins/utils/baleia.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue