mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-08 19:46:06 +01:00
plugins/mini-operators: init
This commit is contained in:
parent
86ca2b6785
commit
9ada504246
2 changed files with 72 additions and 0 deletions
34
plugins/by-name/mini-operators/default.nix
Normal file
34
plugins/by-name/mini-operators/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
name = "mini-operators";
|
||||||
|
moduleName = "mini.operators";
|
||||||
|
|
||||||
|
maintainers = [ lib.maintainers.HeitorAugustoLN ];
|
||||||
|
|
||||||
|
settingsExample = {
|
||||||
|
evaluate = {
|
||||||
|
prefix = "g=";
|
||||||
|
func = lib.nixvim.nestedLiteralLua "nil";
|
||||||
|
};
|
||||||
|
|
||||||
|
exchange = {
|
||||||
|
prefix = "gx";
|
||||||
|
reindent_linewise = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
multiply = {
|
||||||
|
prefix = "gm";
|
||||||
|
func = lib.nixvim.nestedLiteralLua "nil";
|
||||||
|
};
|
||||||
|
|
||||||
|
replace = {
|
||||||
|
prefix = "gr";
|
||||||
|
reindent_linewise = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
sort = {
|
||||||
|
prefix = "gs";
|
||||||
|
func = lib.nixvim.nestedLiteralLua "nil";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,38 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
{
|
||||||
|
empty = {
|
||||||
|
plugins.mini-operators.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
defaults = {
|
||||||
|
plugins.mini-operators = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
evaluate = {
|
||||||
|
prefix = "g=";
|
||||||
|
func = lib.nixvim.mkRaw "nil";
|
||||||
|
};
|
||||||
|
|
||||||
|
exchange = {
|
||||||
|
prefix = "gx";
|
||||||
|
reindent_linewise = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
multiply = {
|
||||||
|
prefix = "gm";
|
||||||
|
func = lib.nixvim.mkRaw "nil";
|
||||||
|
};
|
||||||
|
|
||||||
|
replace = {
|
||||||
|
prefix = "gr";
|
||||||
|
reindent_linewise = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
sort = {
|
||||||
|
prefix = "gs";
|
||||||
|
func = lib.nixvim.mkRaw "nil";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue