From 31579dc201e6097e2bad05c8660c82a109ee2c24 Mon Sep 17 00:00:00 2001 From: Zain Kergaye Date: Fri, 27 Sep 2024 01:57:19 -0600 Subject: [PATCH] plugins/wrapping: init --- plugins/by-name/wrapping/default.nix | 26 +++++++++++++++++++ .../plugins/by-name/wrapping/default.nix | 12 +++++++++ 2 files changed, 38 insertions(+) create mode 100644 plugins/by-name/wrapping/default.nix create mode 100644 tests/test-sources/plugins/by-name/wrapping/default.nix diff --git a/plugins/by-name/wrapping/default.nix b/plugins/by-name/wrapping/default.nix new file mode 100644 index 00000000..0b93ba33 --- /dev/null +++ b/plugins/by-name/wrapping/default.nix @@ -0,0 +1,26 @@ +{ + pkgs, + lib, + ... +}: +let + inherit (lib.nixvim) defaultNullOpts; +in +lib.nixvim.neovim-plugin.mkNeovimPlugin { + name = "wrapping"; + originalName = "wrapping.nvim"; + package = "wrapping-nvim"; + + maintainers = [ lib.maintainers.ZainKergaye ]; + + settingsOptions = { + notify_on_switch = defaultNullOpts.mkBool true '' + By default, wrapping.nvim will output a message to the + command line when the hard or soft mode is set. + ''; + }; + + settingsExample = { + notify_on_switch = false; + }; +} diff --git a/tests/test-sources/plugins/by-name/wrapping/default.nix b/tests/test-sources/plugins/by-name/wrapping/default.nix new file mode 100644 index 00000000..bbb0770c --- /dev/null +++ b/tests/test-sources/plugins/by-name/wrapping/default.nix @@ -0,0 +1,12 @@ +{ + empty = { + plugins.wrapping.enable = true; + }; + + defaults = { + plugins.wrapping = { + enable = true; + settings.notify_on_switch = true; + }; + }; +}