mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
plugins/timerly: init
This commit is contained in:
parent
d385972711
commit
1c53ad9b2f
2 changed files with 49 additions and 0 deletions
21
plugins/by-name/timerly/default.nix
Normal file
21
plugins/by-name/timerly/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
lib.nixvim.plugins.mkNeovimPlugin {
|
||||
name = "timerly";
|
||||
packPathName = "timerly.nvim";
|
||||
package = "timerly";
|
||||
|
||||
settingsExample = {
|
||||
minutes = [
|
||||
30
|
||||
10
|
||||
];
|
||||
};
|
||||
|
||||
maintainers = [ lib.maintainers.FKouhai ];
|
||||
|
||||
}
|
28
tests/test-sources/plugins/by-name/timerly/default.nix
Normal file
28
tests/test-sources/plugins/by-name/timerly/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.timerly.enable = true;
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins = {
|
||||
timerly = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
on_start = null;
|
||||
on_finish.__raw = ''
|
||||
function()
|
||||
vim.notify "Time is up!"
|
||||
end
|
||||
'';
|
||||
minutes = [
|
||||
30
|
||||
10
|
||||
];
|
||||
mapping = null;
|
||||
position = "top-left";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue