mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 17:58:38 +02:00
plugins/fidget: init + test
Co-Authored-By: Shayan Rashid <40346418+ShyProton@users.noreply.github.com>
This commit is contained in:
parent
ecd593386f
commit
48688bfbb7
3 changed files with 297 additions and 0 deletions
57
tests/test-sources/plugins/lsp/fidget.nix
Normal file
57
tests/test-sources/plugins/lsp/fidget.nix
Normal file
|
@ -0,0 +1,57 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.fidget.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.fidget = {
|
||||
enable = true;
|
||||
|
||||
text = {
|
||||
spinner = "pipe";
|
||||
done = "✔";
|
||||
commenced = "Started";
|
||||
completed = "Completed";
|
||||
};
|
||||
align = {
|
||||
bottom = true;
|
||||
right = true;
|
||||
};
|
||||
timer = {
|
||||
spinnerRate = 125;
|
||||
fidgetDecay = 2000;
|
||||
taskDecay = 1000;
|
||||
};
|
||||
window = {
|
||||
relative = "win";
|
||||
blend = 100;
|
||||
zindex = null;
|
||||
border = "none";
|
||||
};
|
||||
fmt = {
|
||||
leftpad = true;
|
||||
stackUpwards = true;
|
||||
maxWidth = 0;
|
||||
fidget.__raw = ''
|
||||
function(fidget_name, spinner)
|
||||
return string.format("%s %s", spinner, fidget_name)
|
||||
end
|
||||
'';
|
||||
task.__raw = ''
|
||||
function(task_name, message, percentage)
|
||||
return string.format(
|
||||
"%s%s [%s]",
|
||||
message,
|
||||
percentage and string.format(" (%s%%)", percentage) or "",
|
||||
task_name
|
||||
)
|
||||
end
|
||||
'';
|
||||
};
|
||||
debug = {
|
||||
logging = false;
|
||||
strict = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue