aboutsummaryrefslogtreecommitdiff
path: root/fnl/nvrc
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-02-26 21:48:06 +0900
committersefidel <contact@sefidel.net>2022-02-26 21:48:40 +0900
commit06695070f47d6ca084d841879e4e39973cce3060 (patch)
tree9d234043616e8904a1bf22a5d61a61fb0e59ffb6 /fnl/nvrc
parent19c7b373e1ad7d7a40901a34b354ff1d6623087d (diff)
downloadnvimrc-06695070f47d6ca084d841879e4e39973cce3060.zip
feat(utils): table -> list (spinners)
Diffstat (limited to 'fnl/nvrc')
-rw-r--r--fnl/nvrc/utils.fnl20
1 files changed, 10 insertions, 10 deletions
diff --git a/fnl/nvrc/utils.fnl b/fnl/nvrc/utils.fnl
index 52ca454..156cff8 100644
--- a/fnl/nvrc/utils.fnl
+++ b/fnl/nvrc/utils.fnl
@@ -39,16 +39,16 @@
(let [msg (or lsp.message "")
percentage (or lsp.percentage 0)
title (or lsp.title "")
- spinners {1 "⠋"
- 2 "⠙"
- 3 "⠹"
- 4 "⠸"
- 5 "⠼"
- 6 "⠴"
- 7 "⠦"
- 8 "⠧"
- 9 "⠇"
- 10 "⠏"}
+ spinners ["⠋"
+ "⠙"
+ "⠹"
+ "⠸"
+ "⠼"
+ "⠴"
+ "⠦"
+ "⠧"
+ "⠇"
+ "⠏"]
success-icon "^.^!"
ms (/ (vim.loop.hrtime) 1000000)
frame (% (math.floor (/ ms 120)) (length spinners))]