1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-08 11:36:07 +01:00

plugins/mini-jump2d: init

This commit is contained in:
Heitor Augusto 2025-11-02 01:45:17 -03:00 committed by Austin Horstman
parent acbb512494
commit e8f8c90897
2 changed files with 86 additions and 0 deletions

View file

@ -0,0 +1,41 @@
{ lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "mini-jump2d";
moduleName = "mini.jump2d";
maintainers = [ lib.maintainers.HeitorAugustoLN ];
settingsExample = {
spotter = lib.nixvim.nestedLiteralLua "nil";
labels = "abcdefghijklmnopqrstuvwxyz";
view = {
dim = false;
n_steps_ahead = 0;
};
allowed_lines = {
blank = true;
cursor_before = true;
cursor_at = true;
cursor_after = true;
fold = true;
};
allowed_windows = {
current = true;
not_current = true;
};
hooks = {
before_start = lib.nixvim.nestedLiteralLua "nil";
after_jump = lib.nixvim.nestedLiteralLua "nil";
};
mappings = {
start_jumping = "<CR>";
};
silent = false;
};
}

View file

@ -0,0 +1,45 @@
{ lib, ... }:
{
empty = {
plugins.mini-jump2d.enable = true;
};
defaults = {
plugins.mini-jump2d = {
enable = true;
settings = {
spotter = lib.nixvim.mkRaw "nil";
labels = "abcdefghijklmnopqrstuvwxyz";
view = {
dim = false;
n_steps_ahead = 0;
};
allowed_lines = {
blank = true;
cursor_before = true;
cursor_at = true;
cursor_after = true;
fold = true;
};
allowed_windows = {
current = true;
not_current = true;
};
hooks = {
before_start = lib.nixvim.mkRaw "nil";
after_jump = lib.nixvim.mkRaw "nil";
};
mappings = {
start_jumping = "<CR>";
};
silent = false;
};
};
};
}