From 09126049a487262ba5f00ea6962c4e85e24abf24 Mon Sep 17 00:00:00 2001 From: saygo-png Date: Fri, 22 Aug 2025 19:56:34 +0200 Subject: [PATCH] plugins/cutlass-nvim: init Signed-off-by: saygo-png --- plugins/by-name/cutlass/default.nix | 25 +++++++++++ .../plugins/by-name/cutlass/default.nix | 43 +++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 plugins/by-name/cutlass/default.nix create mode 100644 tests/test-sources/plugins/by-name/cutlass/default.nix diff --git a/plugins/by-name/cutlass/default.nix b/plugins/by-name/cutlass/default.nix new file mode 100644 index 00000000..ec620396 --- /dev/null +++ b/plugins/by-name/cutlass/default.nix @@ -0,0 +1,25 @@ +{ lib, ... }: +lib.nixvim.plugins.mkNeovimPlugin { + name = "cutlass-nvim"; + moduleName = "cutlass"; + packPathName = "cutlass.nvim"; + + maintainers = [ lib.maintainers.saygo-png ]; + + settingsExample = { + override_del = true; + exclude = [ + "ns" + "nS" + "nx" + "nX" + "nxx" + "nX" + ]; + registers = { + select = "s"; + delete = "d"; + change = "c"; + }; + }; +} diff --git a/tests/test-sources/plugins/by-name/cutlass/default.nix b/tests/test-sources/plugins/by-name/cutlass/default.nix new file mode 100644 index 00000000..7a659901 --- /dev/null +++ b/tests/test-sources/plugins/by-name/cutlass/default.nix @@ -0,0 +1,43 @@ +{ + empty = { + plugins.cutlass-nvim.enable = true; + }; + + defaults = { + plugins.cutlass-nvim = { + enable = true; + settings = { + cut_key = "nil"; + override_del = "nil"; + exclude.__empty = { }; + registers = { + select = "_"; + delete = "_"; + change = "_"; + }; + }; + }; + }; + + example = { + plugins.cutlass-nvim = { + enable = true; + settings = { + override_del = true; + exclude = [ + "ns" + "nS" + "nx" + "nX" + "nxx" + "nX" + ]; + registers = { + select = "s"; + delete = "d"; + change = "c"; + }; + }; + }; + }; +}