Skip to content

Commit

Permalink
feat(progress): omit progress messages from notifications history
Browse files Browse the repository at this point in the history
  • Loading branch information
j-hui committed Dec 12, 2023
1 parent 580b4e4 commit 4ca2fb1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lua/fidget/progress/display.lua
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ M.options = {
---@type number|false
priority = 30,

--- Whether progress notifications should be retained in history.
---
---@type boolean
skip_history = true,

--- How to format a progress message
---
--- Example: ~
Expand Down Expand Up @@ -165,6 +170,7 @@ M.options = {
--- name = "Haskell Language Server",
--- priority = 60,
--- icon = fidget.progress.display.for_icon(fidget.spinner.animate("triangle", 3), "💯"),
--- skip_history = false,
--- },
--- rust_analyzer = {
--- name = "Rust Analyzer",
Expand Down Expand Up @@ -223,6 +229,7 @@ function M.make_config(group)
warn_style = M.options.progress_style,
info_style = M.options.done_style,
priority = M.options.priority or nil,
skip_history = M.options.skip_history,
}

if M.options.overrides[group] then
Expand Down

0 comments on commit 4ca2fb1

Please sign in to comment.