aboutsummaryrefslogtreecommitdiff
path: root/fnl/nvrc/ui/modules/misc.fnl
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-03-06 20:44:10 +0900
committersefidel <contact@sefidel.net>2022-03-06 20:44:10 +0900
commitf98bb630c4bc3562749ffe6b5d18c6a06955af36 (patch)
treecc8cd0d8798ed04d2d855040993c6eef352d6968 /fnl/nvrc/ui/modules/misc.fnl
parent5186760ef60dd0e16431125d9474e3d8d76eccba (diff)
downloadnvimrc-f98bb630c4bc3562749ffe6b5d18c6a06955af36.zip
feat!: UI rewrite
Diffstat (limited to 'fnl/nvrc/ui/modules/misc.fnl')
-rw-r--r--fnl/nvrc/ui/modules/misc.fnl14
1 files changed, 0 insertions, 14 deletions
diff --git a/fnl/nvrc/ui/modules/misc.fnl b/fnl/nvrc/ui/modules/misc.fnl
deleted file mode 100644
index 24d84f9..0000000
--- a/fnl/nvrc/ui/modules/misc.fnl
+++ /dev/null
@@ -1,14 +0,0 @@
-(fn file-size []
- "feline.nvim's file size calculation module."
- (let [suffix [:b :k :M :G :T :P :E]]
- (var index 1)
- (var fsize (vim.fn.getfsize (vim.api.nvim_buf_get_name 0)))
- (when (< fsize 0)
- (set fsize 0))
- (while (and (> fsize 1024) (< index 7))
- (set fsize (/ fsize 1024))
- (set index (+ index 1)))
- (string.format (or (and (= index 1) "%g%s | ") "%.2f%s | ") fsize
- (. suffix index))))
-
-{: file-size}