mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-08 19:46:06 +01:00
plugins/mini-move: init
This commit is contained in:
parent
b3a2ae0725
commit
e2fa3f656c
2 changed files with 53 additions and 0 deletions
25
plugins/by-name/mini-move/default.nix
Normal file
25
plugins/by-name/mini-move/default.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
name = "mini-move";
|
||||||
|
moduleName = "mini.move";
|
||||||
|
|
||||||
|
maintainers = [ lib.maintainers.HeitorAugustoLN ];
|
||||||
|
|
||||||
|
settingsExample = {
|
||||||
|
mappings = {
|
||||||
|
left = "<M-h>";
|
||||||
|
right = "<M-l>";
|
||||||
|
down = "<M-j>";
|
||||||
|
up = "<M-k>";
|
||||||
|
|
||||||
|
line_left = "<M-h>";
|
||||||
|
line_right = "<M-l>";
|
||||||
|
line_down = "<M-j>";
|
||||||
|
line_up = "<M-k>";
|
||||||
|
};
|
||||||
|
|
||||||
|
options = {
|
||||||
|
reindent_linewise = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
28
tests/test-sources/plugins/by-name/mini-move/default.nix
Normal file
28
tests/test-sources/plugins/by-name/mini-move/default.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
{
|
||||||
|
empty = {
|
||||||
|
plugins.mini-move.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
defaults = {
|
||||||
|
plugins.mini-move = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
mappings = {
|
||||||
|
left = "<M-h>";
|
||||||
|
right = "<M-l>";
|
||||||
|
down = "<M-j>";
|
||||||
|
up = "<M-k>";
|
||||||
|
|
||||||
|
line_left = "<M-h>";
|
||||||
|
line_right = "<M-l>";
|
||||||
|
line_down = "<M-j>";
|
||||||
|
line_up = "<M-k>";
|
||||||
|
};
|
||||||
|
|
||||||
|
options = {
|
||||||
|
reindent_linewise = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue