summaryrefslogtreecommitdiffstats
path: root/lua/conf/plugins/fidget.lua
blob: 044f4ecf30de1d9df7e8739e3f83a70578fff1f9 (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
return { 'j-hui/fidget.nvim',
  disable = vim.version().minor < 9,
  branch = "v1.4.5",
  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 = "editor"
        }
      }
    }
  end
}