1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-15 15:02:47 +01:00

plugins/blink-indent: init

This commit is contained in:
Heitor Augusto 2025-11-14 15:12:08 -03:00 committed by Austin Horstman
parent 6c2ac251d7
commit 3832b56fb6
2 changed files with 96 additions and 0 deletions

View 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;
};
}

View 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;
};
};
};
}