From 06695070f47d6ca084d841879e4e39973cce3060 Mon Sep 17 00:00:00 2001 From: sefidel Date: Sat, 26 Feb 2022 21:48:06 +0900 Subject: feat(utils): table -> list (spinners) --- fnl/nvrc/utils.fnl | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'fnl/nvrc/utils.fnl') 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))] -- cgit 1.4.1