mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
plugins/wrapping: init
This commit is contained in:
parent
10925d811c
commit
31579dc201
2 changed files with 38 additions and 0 deletions
26
plugins/by-name/wrapping/default.nix
Normal file
26
plugins/by-name/wrapping/default.nix
Normal file
|
@ -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;
|
||||
};
|
||||
}
|
12
tests/test-sources/plugins/by-name/wrapping/default.nix
Normal file
12
tests/test-sources/plugins/by-name/wrapping/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.wrapping.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.wrapping = {
|
||||
enable = true;
|
||||
settings.notify_on_switch = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue