mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
plugins/ident-tools: init
This commit is contained in:
parent
eeae362038
commit
913a3521ab
2 changed files with 59 additions and 0 deletions
19
plugins/by-name/indent-tools/default.nix
Normal file
19
plugins/by-name/indent-tools/default.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
name = "indent-tools";
|
||||||
|
packPathName = "indent-tools.nvim";
|
||||||
|
package = "indent-tools-nvim";
|
||||||
|
|
||||||
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
|
|
||||||
|
settingsExample = {
|
||||||
|
textobj = {
|
||||||
|
ii = "iI";
|
||||||
|
ai = "aI";
|
||||||
|
};
|
||||||
|
normal = {
|
||||||
|
up = false;
|
||||||
|
down = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
40
tests/test-sources/plugins/by-name/indent-tools/default.nix
Normal file
40
tests/test-sources/plugins/by-name/indent-tools/default.nix
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
{
|
||||||
|
empty = {
|
||||||
|
plugins.indent-tools.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
defaults = {
|
||||||
|
plugins.indent-tools = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
normal = {
|
||||||
|
up = "[i";
|
||||||
|
down = "]i";
|
||||||
|
repeatable = true;
|
||||||
|
};
|
||||||
|
textobj = {
|
||||||
|
ii = "ii";
|
||||||
|
ai = "ai";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
example = {
|
||||||
|
plugins.indent-tools = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
textobj = {
|
||||||
|
ii = "iI";
|
||||||
|
ai = "aI";
|
||||||
|
};
|
||||||
|
normal = {
|
||||||
|
up = false;
|
||||||
|
down = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue