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 Vincent Wang committed Nov 27, 2023
1 parent bef0dd4 commit 4a93237
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 16 deletions.
32 changes: 23 additions & 9 deletions lua/modules/configs/ui/fidget.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
return function()
require("modules.utils").load_plugin("fidget", {
window = { blend = 0 },
sources = {
["null-ls"] = { ignore = true },
},
fmt = {
max_messages = 3, -- The maximum number of messages stacked at any give time
},
})
local icons = {
ui = require("modules.utils.icons").get("ui"),
}

require("modules.utils").load_plugin("fidget", {
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
},
},
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
13 changes: 6 additions & 7 deletions lua/modules/plugins/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ ui["sainnhe/edge"] = {
}
ui["j-hui/fidget.nvim"] = {
lazy = true,
branch = "legacy",
event = "LspAttach",
config = require("ui.fidget"),
}
Expand All @@ -38,8 +37,8 @@ ui["lewis6991/gitsigns.nvim"] = {
config = require("ui.gitsigns"),
}
ui["lukas-reineke/indent-blankline.nvim"] = {
lazy = true,
event = { "CursorHold", "CursorHoldI" },
lazy = true,
event = { "CursorHold", "CursorHoldI" },
config = require("ui.indent-blankline"),
}
ui["nvim-lualine/lualine.nvim"] = {
Expand All @@ -48,10 +47,10 @@ ui["nvim-lualine/lualine.nvim"] = {
config = require("ui.lualine"),
}
ui["zbirenbaum/neodim"] = {
lazy = true,
commit = "9477da0",
event = "LspAttach",
config = require("ui.neodim"),
lazy = true,
commit = "9477da0",
event = "LspAttach",
config = require("ui.neodim"),
}
ui["karb94/neoscroll.nvim"] = {
lazy = true,
Expand Down

0 comments on commit 4a93237

Please sign in to comment.