mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 17:28:39 +02:00
plugins/specs: add tests
This commit is contained in:
parent
9d0960b986
commit
de9b81c7e7
1 changed files with 64 additions and 0 deletions
64
tests/test-sources/plugins/ui/specs.nix
Normal file
64
tests/test-sources/plugins/ui/specs.nix
Normal file
|
@ -0,0 +1,64 @@
|
||||||
|
{
|
||||||
|
empty = {
|
||||||
|
plugins.specs.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
example = {
|
||||||
|
plugins.specs = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
show_jumps = true;
|
||||||
|
min_jump = 30;
|
||||||
|
popup = {
|
||||||
|
delay_ms = 0;
|
||||||
|
inc_ms = 10;
|
||||||
|
blend = 10;
|
||||||
|
width = 10;
|
||||||
|
winhl = "PMenu";
|
||||||
|
fader = ''
|
||||||
|
function(blend, cnt)
|
||||||
|
if cnt > 100 then
|
||||||
|
return 80
|
||||||
|
else return nil end
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
resizer = ''
|
||||||
|
function(width, ccol, cnt)
|
||||||
|
if width-cnt > 0 then
|
||||||
|
return {width+cnt, ccol}
|
||||||
|
else return nil end
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
ignore_filetypes = { };
|
||||||
|
ignore_buftypes = {
|
||||||
|
nofile = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
defaults = {
|
||||||
|
plugins.specs = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
|
||||||
|
show_jumps = true;
|
||||||
|
min_jump = 30;
|
||||||
|
popup = {
|
||||||
|
delay_ms = 10;
|
||||||
|
inc_ms = 5;
|
||||||
|
blend = 10;
|
||||||
|
width = 20;
|
||||||
|
winhl = "PMenu";
|
||||||
|
fader = "require('specs').linear_fader";
|
||||||
|
resizer = "require('specs').shrink_resizer";
|
||||||
|
};
|
||||||
|
ignore_filetypes = { };
|
||||||
|
ignore_buftypes = {
|
||||||
|
nofile = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue