summaryrefslogtreecommitdiffstats
path: root/lua/conf/plugins/fidget.lua
blob: b4bfbacef505f960ca1eae888542428757607250 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
return { 'j-hui/fidget.nvim',
  disable = not vim.fn.has("nvim-0.9.0"),
  branch = "v1.5.0",
  function()
    local notification_defaults = require("fidget.notification").default_config
    notification_defaults["icon"] = ""

    require('fidget').setup {
      progress = {
        display = {
          progress_icon = {
            pattern = "line",
            period = 1
          },
          done_icon = ":)"
        }
      },
      notification = {
        filter = vim.log.levels.DEBUG,
        override_vim_notify = true,
        configs = {
          default = notification_defaults
        },
        view = {
          icon_separator = " ",
          group_separator = "---",
          group_separator_hl = "Comment"
        },
        window = {
          zindex = 44,
          relative = "editor"
        }
      }
    }
  end
}