install mini.ai

This commit is contained in:
♥ Minnie ♥ 2025-06-22 20:50:58 +08:00
parent 8ae42d19fb
commit 5df9ad4227
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
2 changed files with 32 additions and 0 deletions

View file

@ -20,6 +20,7 @@
# Editor plugins and configurations # Editor plugins and configurations
./plugins/editor/buffers.nix ./plugins/editor/buffers.nix
./plugins/editor/commentary.nix ./plugins/editor/commentary.nix
./plugins/editor/mini.nix
./plugins/editor/sessions.nix ./plugins/editor/sessions.nix
./plugins/editor/smart-splits.nix ./plugins/editor/smart-splits.nix
./plugins/editor/surround.nix ./plugins/editor/surround.nix

View file

@ -0,0 +1,31 @@
{...}:{
plugins.mini = {
enable = true;
# Extend and create a/i textobjects.
modules.ai = {
# Module mappings.
mappings = {
# Main textobject prefixes
around = "a";
inside = "i";
# Next/last variants
around_next = "an";
inside_next = "in";
around_last = "al";
inside_last = "il";
# Move cursor to corresponding edge of `a` textobject
goto_left = "g[";
goto_right = "g]";
};
# Number of lines within which textobject is searched
n_lines = 50;
# How to search for object
search_method = "cover_or_next";
};
};
}