aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins/fidget.lua
blob: d401c5f488e6fc309b00b161f1eef17393bc3e7f (plain)
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
require("fidget").setup({
  --event = "LspAttach",
  text = {
    --spinner = "pipe",         -- (Default) animation shown when tasks are ongoing
    --spinner = "hamburger",         -- animation shown when tasks are ongoing
    --spinner = "dots_pulse",         -- animation shown when tasks are ongoing
    spinner = "dots",        -- animation shown when tasks are ongoing
    done = "✔",            -- character shown when all tasks are complete
    commenced = "Started",   -- message shown when task starts
    completed = "Completed", -- message shown when task completes
  },
  fmt = {
    task = function(task_name, message, percentage)
      if task_name == "diagnostics" then
        return false
      end
      return string.format(
        "%s%s [%s]",
        message,
        percentage and string.format(" (%s%%)", percentage) or "",
        task_name
      )
    end,
  },
  --sources = {                 -- Sources to configure
  --["null-ls"] = {         -- Name of source
  --ignore = true,        -- Ignore notifications from this source
  --},
  --},
  debug = {
    logging = false, -- whether to enable logging, for debugging
    strict = false,  -- whether to interpret LSP strictly
  },
})