tests/fidget: update to new format

This commit is contained in:
Heitor Augusto 2024-12-28 16:58:39 -03:00 committed by nix-infra-bot
parent 038f5656d8
commit 81c1ef2090

View file

@ -7,13 +7,14 @@
plugins.fidget = { plugins.fidget = {
enable = true; enable = true;
settings = {
progress = { progress = {
pollRate = 0; poll_rate = 0;
suppressOnInsert = false; suppress_on_insert = false;
ignoreDoneAlready = false; ignore_done_already = false;
ignoreEmptyMessage = true; ignore_empty_message = true;
notificationGroup = "function(msg) return msg.lsp_name end"; notification_group.__raw = "function(msg) return msg.lsp_name end";
clearOnDetach = '' clear_on_detach.__raw = ''
function(client_id) function(client_id)
local client = vim.lsp.get_client_by_id(client_id) local client = vim.lsp.get_client_by_id(client_id)
return client and client.name or nil return client and client.name or nil
@ -21,22 +22,20 @@
''; '';
ignore = [ ]; ignore = [ ];
display = { display = {
renderLimit = 16; render_limit = 16;
doneTtl = 3; done_ttl = 3;
doneIcon = ""; done_icon = "";
doneStyle = "Constant"; done_style = "Constant";
progressTtl = "math.huge"; progress_ttl.__raw = "math.huge";
progressIcon = { progress_icon = [ "dots" ];
pattern = "dots"; progress_style = "Warning_msg";
}; group_style = "Title";
progressStyle = "WarningMsg"; icon_style = "Question";
groupStyle = "Title";
iconStyle = "Question";
priority = 30; priority = 30;
skipHistory = true; skip_history = true;
formatMessage = "require('fidget.progress.display').default_format_message"; format_message.__raw = "require('fidget.progress.display').default_format_message";
formatAnnote = "function(msg) return msg.title end"; format_annote.__raw = "function(msg) return msg.title end";
formatGroupName = "function(group) return tostring(group) end"; format_group_name.__raw = "function(group) return tostring(group) end";
overrides = { overrides = {
rust_analyzer = { rust_analyzer = {
name = "rust-analyzer"; name = "rust-analyzer";
@ -44,18 +43,18 @@
}; };
}; };
lsp = { lsp = {
progressRingbufSize = 0; progress_ringbuf_size = 0;
}; };
}; };
notification = { notification = {
pollRate = 10; poll_rate = 10;
filter = "info"; filter = "info";
historySize = 128; history_size = 128;
overrideVimNotify = false; override_vim_notify = false;
configs = { configs = {
default = "require('fidget.notification').default_config"; default.__raw = "require('fidget.notification').default_config";
}; };
redirect = '' redirect.__raw = ''
function(msg, level, opts) function(msg, level, opts)
if opts and opts.on_open then if opts and opts.on_open then
return require("fidget.integration.nvim-notify").delegate(msg, level, opts) return require("fidget.integration.nvim-notify").delegate(msg, level, opts)
@ -63,21 +62,21 @@
end end
''; '';
view = { view = {
stackUpwards = true; stack_upwards = true;
iconSeparator = " "; icon_separator = " ";
groupSeparator = "---"; group_separator = "---";
groupSeparatorHl = "Comment"; group_separator_hl = "Comment";
}; };
window = { window = {
normalHl = "Comment"; normal_hl = "Comment";
winblend = 100; winblend = 100;
border = "none"; border = "none";
borderHl = ""; border_hl = "";
zindex = 45; zindex = 45;
maxWidth = 0; max_width = 0;
maxHeight = 0; max_height = 0;
xPadding = 1; x_padding = 1;
yPadding = 0; y_padding = 0;
align = "bottom"; align = "bottom";
relative = "editor"; relative = "editor";
}; };
@ -89,21 +88,24 @@
}; };
logger = { logger = {
level = "warn"; level = "warn";
floatPrecision = 1.0e-2; float_precision = 1.0e-2;
path.__raw = "string.format('%s/fidget.nvim.log', vim.fn.stdpath('cache'))"; path.__raw = "string.format('%s/fidget.nvim.log', vim.fn.stdpath('cache'))";
}; };
}; };
}; };
};
nvim-tree-integration = { nvim-tree-integration = {
plugins = { plugins = {
nvim-tree.enable = true; nvim-tree.enable = true;
fidget = { fidget = {
enable = true; enable = true;
settings = {
integration = { integration = {
nvim-tree.enable = true; nvim-tree.enable = true;
}; };
}; };
};
web-devicons.enable = true; web-devicons.enable = true;
}; };
}; };