about summary refs log tree commit diff
path: root/fnl/nvrc/ui/statusline.fnl
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-03-06 20:51:38 +0900
committersefidel <contact@sefidel.net>2022-03-06 20:51:38 +0900
commitf5cc3f01fae31acdb35b9c70b739a130b059f05f (patch)
tree452acff8b6c247bf8459e1a6c81767cea116a89e /fnl/nvrc/ui/statusline.fnl
parent3c1989af2f178711055f75639ac5208c166cec68 (diff)
downloadnvimrc-f5cc3f01fae31acdb35b9c70b739a130b059f05f.tar.gz
nvimrc-f5cc3f01fae31acdb35b9c70b739a130b059f05f.zip
feat(ui): combine statusline into one file
Diffstat (limited to 'fnl/nvrc/ui/statusline.fnl')
-rw-r--r--fnl/nvrc/ui/statusline.fnl23
1 files changed, 0 insertions, 23 deletions
diff --git a/fnl/nvrc/ui/statusline.fnl b/fnl/nvrc/ui/statusline.fnl
deleted file mode 100644
index c50bc81..0000000
--- a/fnl/nvrc/ui/statusline.fnl
+++ /dev/null
@@ -1,23 +0,0 @@
-(import-macros {: setl!} :nvrc.macro.set)
-(import-macros {: ag!
-                : au!} :nvrc.macro.event)
-
-(local {: diagnostics} (require :nvrc.ui.modules.diagnostics))
-
-(global statusline {})
-(set statusline.enable (fn []
-                         (table.concat ["%#StatusLineAccent#"
-                                        "▊ "
-                                        "%#StatusLine#"
-                                        "%#StatusLineAccentBold#"
-                                        "%f%m%r "
-                                        "%#StatusLine#"
-                                        "%l:%c | "
-                                        (diagnostics)
-                                        "%="
-                                        "%#StatusLineAccentBold#"
-                                        "%y *%n "])))
-
-(ag! ui-statusline
-  (au! [WinEnter BufEnter] * #(setl! statusline "%!v:lua.statusline.enable()"))
-  (au! [WinLeave BufLeave] * #(setl! statusline " ")))