-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(fidget)!: support v2 * fixup! feat(fidget)!: support v2
- Loading branch information
Showing
2 changed files
with
19 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,25 @@ | ||
return function() | ||
local icons = { | ||
ui = require("modules.utils.icons").get("ui"), | ||
} | ||
|
||
require("modules.utils").load_plugin("fidget", { | ||
window = { blend = 0 }, | ||
sources = { | ||
["null-ls"] = { ignore = true }, | ||
progress = { | ||
suppress_on_insert = false, -- Suppress new messages while in insert mode | ||
ignore_done_already = false, -- Ignore new tasks that are already complete | ||
ignore = { "null-ls" }, -- List of LSP servers to ignore | ||
display = { | ||
render_limit = 5, -- How many LSP messages to show at once | ||
done_ttl = 2, -- How long a message should persist after completion | ||
done_icon = icons.ui.Accepted, -- Icon shown when all LSP progress tasks are complete | ||
}, | ||
}, | ||
fmt = { | ||
max_messages = 3, -- The maximum number of messages stacked at any give time | ||
notification = { | ||
override_vim_notify = false, -- Automatically override vim.notify() with Fidget | ||
window = { | ||
winblend = 0, -- Background color opacity in the notification window | ||
zindex = 75, -- Stacking priority of the notification window | ||
}, | ||
}, | ||
}) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters