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"; + }; + }; + }; + }; +}