mirror of
https://github.com/nix-community/nixvim.git
synced 2026-09-24 23:39:45 -05:00
plugins/specs: add tests
This commit is contained in:
committed by
Gaétan Lepage
parent
9d0960b986
commit
de9b81c7e7
@@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user