mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-15 23:12:48 +01:00
plugins/blink-indent: init
This commit is contained in:
parent
6c2ac251d7
commit
3832b56fb6
2 changed files with 96 additions and 0 deletions
20
plugins/by-name/blink-indent/default.nix
Normal file
20
plugins/by-name/blink-indent/default.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
name = "blink-indent";
|
||||||
|
moduleName = "blink.indent";
|
||||||
|
|
||||||
|
maintainers = [ lib.maintainers.HeitorAugustoLN ];
|
||||||
|
|
||||||
|
settingsExample = {
|
||||||
|
static.highlights = [
|
||||||
|
"BlinkIndentRed"
|
||||||
|
"BlinkIndentOrange"
|
||||||
|
"BlinkIndentYellow"
|
||||||
|
"BlinkIndentGreen"
|
||||||
|
"BlinkIndentViolet"
|
||||||
|
"BlinkIndentCyan"
|
||||||
|
];
|
||||||
|
|
||||||
|
scope.underline.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
76
tests/test-sources/plugins/by-name/blink-indent/default.nix
Normal file
76
tests/test-sources/plugins/by-name/blink-indent/default.nix
Normal file
|
|
@ -0,0 +1,76 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
{
|
||||||
|
empty = {
|
||||||
|
plugins.blink-indent.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
defaults = {
|
||||||
|
plugins.blink-indent = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
blocked = {
|
||||||
|
buftypes.include_defaults = true;
|
||||||
|
filetypes.include_defaults = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
mappings = {
|
||||||
|
border = "both";
|
||||||
|
object_scope = "ii";
|
||||||
|
object_scope_with_border = "ai";
|
||||||
|
goto_top = "[i";
|
||||||
|
goto_bottom = "]i";
|
||||||
|
};
|
||||||
|
|
||||||
|
static = {
|
||||||
|
enabled = true;
|
||||||
|
char = "▎";
|
||||||
|
whitespace_char = lib.nixvim.mkRaw "nil";
|
||||||
|
priority = 1;
|
||||||
|
highlights = [ "BlinkIndent" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
scope = {
|
||||||
|
enabled = true;
|
||||||
|
char = "▎";
|
||||||
|
priority = 1000;
|
||||||
|
|
||||||
|
highlights = [
|
||||||
|
"BlinkIndentOrange"
|
||||||
|
"BlinkIndentViolet"
|
||||||
|
"BlinkIndentBlue"
|
||||||
|
];
|
||||||
|
|
||||||
|
underline = {
|
||||||
|
enabled = false;
|
||||||
|
|
||||||
|
highlights = [
|
||||||
|
"BlinkIndentOrangeUnderline"
|
||||||
|
"BlinkIndentVioletUnderline"
|
||||||
|
"BlinkIndentBlueUnderline"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
example = {
|
||||||
|
plugins.blink-indent = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
static.highlights = [
|
||||||
|
"BlinkIndentRed"
|
||||||
|
"BlinkIndentOrange"
|
||||||
|
"BlinkIndentYellow"
|
||||||
|
"BlinkIndentGreen"
|
||||||
|
"BlinkIndentViolet"
|
||||||
|
"BlinkIndentCyan"
|
||||||
|
];
|
||||||
|
|
||||||
|
scope.underline.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue