-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathfidget_spinner.lua
More file actions
78 lines (74 loc) · 1.59 KB
/
fidget_spinner.lua
File metadata and controls
78 lines (74 loc) · 1.59 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
local M = {}
M.config = function()
local status_ok, fidget = pcall(require, "fidget")
if not status_ok then
return
end
fidget.setup {
progress = {
poll_rate = 0,
suppress_on_insert = false,
ignore_done_already = true,
ignore_empty_message = true,
ignore = { "null-ls", "none-ls" },
display = {
done_icon = "",
done_style = "Constant",
progress_icon = {
pattern = {
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
},
period = 1,
},
format_message = function(msg)
local message = msg.message
if not message then
message = msg.done and " " or " "
end
if msg.percentage ~= nil then
message = string.format("%s (%.0f%%)", message, msg.percentage)
end
return message
end,
},
},
notification = {
window = {
winblend = 0,
},
},
integration = {
["nvim-tree"] = {
enable = lvim.builtin.tree_provider == "nvimtree",
},
},
}
end
return M