summaryrefslogtreecommitdiffstats
path: root/lua/conf/plugins/fidget.lua
blob: e36488ef0fae604cb00e1e10db167b85dc916f24 (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
return { 'j-hui/fidget.nvim',
  disable = vim.version().minor < 9,
  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 = {
        override_vim_notify = true,
        configs = {
          default = notification_defaults,
        },
        view = {
          icon_separator = " ",
          group_separator = "---",
          group_separator_hl = "Comment",
        },
        window = {
          zindex = 44,
          relative = "win"
        }
      }
    }
  end
}