mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-08 19:46:06 +01:00
plugins/mini-visits: init
This commit is contained in:
parent
7061e274db
commit
a412c12e81
2 changed files with 58 additions and 0 deletions
27
plugins/by-name/mini-visits/default.nix
Normal file
27
plugins/by-name/mini-visits/default.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
name = "mini-visits";
|
||||||
|
moduleName = "mini.visits";
|
||||||
|
|
||||||
|
maintainers = [ lib.maintainers.HeitorAugustoLN ];
|
||||||
|
|
||||||
|
settingsExample = {
|
||||||
|
list = {
|
||||||
|
filter = lib.nixvim.nestedLiteralLua "nil";
|
||||||
|
sort = lib.nixvim.nestedLiteralLua "nil";
|
||||||
|
};
|
||||||
|
|
||||||
|
silent = false;
|
||||||
|
|
||||||
|
store = {
|
||||||
|
autowrite = true;
|
||||||
|
normalize = lib.nixvim.nestedLiteralLua "nil";
|
||||||
|
path = lib.nixvim.nestedLiteralLua "vim.fn.stdpath('data') .. '/mini-visits-index'";
|
||||||
|
};
|
||||||
|
|
||||||
|
track = {
|
||||||
|
event = "BufEnter";
|
||||||
|
delay = 1000;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
31
tests/test-sources/plugins/by-name/mini-visits/default.nix
Normal file
31
tests/test-sources/plugins/by-name/mini-visits/default.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
{
|
||||||
|
empty = {
|
||||||
|
plugins.mini-visits.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
defaults = {
|
||||||
|
plugins.mini-visits = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
list = {
|
||||||
|
filter = lib.nixvim.mkRaw "nil";
|
||||||
|
sort = lib.nixvim.mkRaw "nil";
|
||||||
|
};
|
||||||
|
|
||||||
|
silent = false;
|
||||||
|
|
||||||
|
store = {
|
||||||
|
autowrite = true;
|
||||||
|
normalize = lib.nixvim.mkRaw "nil";
|
||||||
|
path = lib.nixvim.mkRaw "vim.fn.stdpath('data') .. '/mini-visits-index'";
|
||||||
|
};
|
||||||
|
|
||||||
|
track = {
|
||||||
|
event = "BufEnter";
|
||||||
|
delay = 1000;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue