mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-24 04:35:08 +02:00
plugins/snacks: init
This commit is contained in:
parent
54f567166d
commit
46e574d4ea
2 changed files with 439 additions and 0 deletions
180
tests/test-sources/plugins/by-name/snacks/default.nix
Normal file
180
tests/test-sources/plugins/by-name/snacks/default.nix
Normal file
|
@ -0,0 +1,180 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.snacks.enable = true;
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.snacks = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
bigfile = {
|
||||
enabled = true;
|
||||
};
|
||||
statuscolumn = {
|
||||
enabled = false;
|
||||
};
|
||||
words = {
|
||||
enabled = true;
|
||||
debounce = 100;
|
||||
};
|
||||
quickfile = {
|
||||
enabled = false;
|
||||
};
|
||||
notifier = {
|
||||
enabled = true;
|
||||
timeout = 3000;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
default = {
|
||||
plugins.snacks = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
bigfile = {
|
||||
enabled = true;
|
||||
notify = true;
|
||||
size.__raw = "1.5 * 1024 * 1024";
|
||||
setup.__raw = ''
|
||||
function(ctx)
|
||||
vim.b.minianimate_disable = true
|
||||
vim.schedule(function()
|
||||
vim.bo[ctx.buf].syntax = ctx.ft
|
||||
end)
|
||||
end
|
||||
'';
|
||||
};
|
||||
notifier = {
|
||||
enabled = true;
|
||||
timeout = 3000;
|
||||
width = {
|
||||
min = 40;
|
||||
max = 0.4;
|
||||
};
|
||||
height = {
|
||||
min = 1;
|
||||
max = 0.6;
|
||||
};
|
||||
margin = {
|
||||
top = 0;
|
||||
right = 1;
|
||||
bottom = 0;
|
||||
};
|
||||
padding = true;
|
||||
sort = [
|
||||
"level"
|
||||
"added"
|
||||
];
|
||||
icons = {
|
||||
error = " ";
|
||||
warn = " ";
|
||||
info = " ";
|
||||
debug = " ";
|
||||
trace = " ";
|
||||
};
|
||||
style = "compact";
|
||||
top_down = true;
|
||||
date_format = "%R";
|
||||
refresh = 50;
|
||||
};
|
||||
quickfile = {
|
||||
enabled = true;
|
||||
exclude = [ "latex" ];
|
||||
};
|
||||
statuscolumn = {
|
||||
left = [
|
||||
"mark"
|
||||
"sign"
|
||||
];
|
||||
right = [
|
||||
"fold"
|
||||
"git"
|
||||
];
|
||||
folds = {
|
||||
open = false;
|
||||
git_hl = false;
|
||||
};
|
||||
git = {
|
||||
patterns = [
|
||||
"GitSign"
|
||||
"MiniDiffSign"
|
||||
];
|
||||
};
|
||||
refresh = 50;
|
||||
};
|
||||
words = {
|
||||
enabled = true;
|
||||
debounce = 200;
|
||||
notify_jump = false;
|
||||
notify_end = true;
|
||||
foldopen = true;
|
||||
jumplist = true;
|
||||
modes = [
|
||||
"n"
|
||||
"i"
|
||||
"c"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
all-plugins = {
|
||||
plugins.snacks = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
bigfile = {
|
||||
enabled = true;
|
||||
notify = true;
|
||||
size.__raw = "1.5 * 1024 * 1024";
|
||||
};
|
||||
notifier = {
|
||||
enabled = true;
|
||||
timeout = 5000;
|
||||
width = {
|
||||
min = 50;
|
||||
max = 0.5;
|
||||
};
|
||||
padding = false;
|
||||
sort = [
|
||||
"added"
|
||||
"level"
|
||||
];
|
||||
style = "fancy";
|
||||
refresh = 100;
|
||||
date_format = "%R";
|
||||
top_down = false;
|
||||
};
|
||||
quickfile = {
|
||||
enabled = true;
|
||||
exclude = [ "latex" ];
|
||||
};
|
||||
statuscolumn = {
|
||||
enabled = true;
|
||||
left = [
|
||||
"sign"
|
||||
"mark"
|
||||
];
|
||||
folds.open = true;
|
||||
refresh = 100;
|
||||
};
|
||||
words = {
|
||||
enabled = true;
|
||||
debounce = 300;
|
||||
notify_jump = true;
|
||||
notify_end = false;
|
||||
foldopen = false;
|
||||
jumplist = true;
|
||||
modes = [
|
||||
"n"
|
||||
"i"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue