Skip to content

Commit

Permalink
feat(fidget)!: support v2 (ayamir#1068)
Browse files Browse the repository at this point in the history
* feat(fidget)!: support v2

* fixup! feat(fidget)!: support v2
  • Loading branch information
Jint-lzxy authored and husheng committed Nov 20, 2023
1 parent c9c836a commit 35f225c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
24 changes: 19 additions & 5 deletions lua/modules/configs/ui/fidget.lua
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
1 change: 0 additions & 1 deletion lua/modules/plugins/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ ui["sainnhe/edge"] = {
}
ui["j-hui/fidget.nvim"] = {
lazy = true,
branch = "legacy",
event = "LspAttach",
config = require("ui.fidget"),
}
Expand Down

0 comments on commit 35f225c

Please sign in to comment.