From 913a3521ab9ce9223957a1679914e71498a4be43 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 30 Apr 2025 22:49:38 +0200 Subject: [PATCH] plugins/ident-tools: init --- plugins/by-name/indent-tools/default.nix | 19 +++++++++ .../plugins/by-name/indent-tools/default.nix | 40 +++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 plugins/by-name/indent-tools/default.nix create mode 100644 tests/test-sources/plugins/by-name/indent-tools/default.nix diff --git a/plugins/by-name/indent-tools/default.nix b/plugins/by-name/indent-tools/default.nix new file mode 100644 index 00000000..18a34d4a --- /dev/null +++ b/plugins/by-name/indent-tools/default.nix @@ -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; + }; + }; +} diff --git a/tests/test-sources/plugins/by-name/indent-tools/default.nix b/tests/test-sources/plugins/by-name/indent-tools/default.nix new file mode 100644 index 00000000..3223eec6 --- /dev/null +++ b/tests/test-sources/plugins/by-name/indent-tools/default.nix @@ -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; + }; + }; + }; + }; +}