mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-08 19:46:06 +01:00
plugins/mini-indentscope: init
This commit is contained in:
parent
7ce22bba75
commit
4cc7ab6c6a
2 changed files with 66 additions and 0 deletions
31
plugins/by-name/mini-indentscope/default.nix
Normal file
31
plugins/by-name/mini-indentscope/default.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
name = "mini-indentscope";
|
||||||
|
moduleName = "mini.indentscope";
|
||||||
|
|
||||||
|
maintainers = [ lib.maintainers.HeitorAugustoLN ];
|
||||||
|
|
||||||
|
settingsExample = {
|
||||||
|
draw = {
|
||||||
|
delay = 100;
|
||||||
|
predicate = lib.nixvim.nestedLiteralLua "function (scope) return not scope.body.is_incomplete end";
|
||||||
|
priority = 2;
|
||||||
|
};
|
||||||
|
|
||||||
|
mappings = {
|
||||||
|
object_scope = "ii";
|
||||||
|
object_scope_with_border = "ai";
|
||||||
|
goto_top = "[i";
|
||||||
|
goto_bottom = "]i";
|
||||||
|
};
|
||||||
|
|
||||||
|
options = {
|
||||||
|
border = "both";
|
||||||
|
indent_at_cursor = true;
|
||||||
|
n_lines = 10000;
|
||||||
|
try_as_border = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
symbol = "╎";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,35 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
{
|
||||||
|
empty = {
|
||||||
|
plugins.mini-indentscope.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
defaults = {
|
||||||
|
plugins.mini-indentscope = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
draw = {
|
||||||
|
delay = 100;
|
||||||
|
predicate = lib.nixvim.mkRaw "function (scope) return not scope.body.is_incomplete end";
|
||||||
|
priority = 2;
|
||||||
|
};
|
||||||
|
|
||||||
|
mappings = {
|
||||||
|
object_scope = "ii";
|
||||||
|
object_scope_with_border = "ai";
|
||||||
|
goto_top = "[i";
|
||||||
|
goto_bottom = "]i";
|
||||||
|
};
|
||||||
|
|
||||||
|
options = {
|
||||||
|
border = "both";
|
||||||
|
indent_at_cursor = true;
|
||||||
|
n_lines = 10000;
|
||||||
|
try_as_border = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
symbol = "╎";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue