about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2024-05-19 01:15:57 +0900
committersefidel <contact@sefidel.net>2024-05-19 01:15:57 +0900
commit1442e6674d118a38f314a803b7713e63377da1b0 (patch)
treea34d5b9393455fe722e4c42bf07f0a7d1f4addd0
parenta94f39f105fcc94f3092ea6360215d1b3f2c2cfa (diff)
downloadnvimrc-1442e6674d118a38f314a803b7713e63377da1b0.tar.gz
nvimrc-1442e6674d118a38f314a803b7713e63377da1b0.zip
chore(statusline): use vlua macro
-rw-r--r--fnl/nvrc/statusline.fnl3
1 files changed, 2 insertions, 1 deletions
diff --git a/fnl/nvrc/statusline.fnl b/fnl/nvrc/statusline.fnl
index 76efd45..c49d992 100644
--- a/fnl/nvrc/statusline.fnl
+++ b/fnl/nvrc/statusline.fnl
@@ -1,3 +1,4 @@
+(import-macros {: vlua} :nvrc.macro.toolkit)
 (import-macros {: setl!} :nvrc.macro.set)
 (import-macros {: ag!
                 : au!} :nvrc.macro.event)
@@ -37,5 +38,5 @@
                                         "%y "])))
 
 (ag! ui-statusline
-  (au! [WinEnter BufEnter] * #(setl! statusline "%!v:lua.statusline.enable()"))
+  (au! [WinEnter BufEnter] * #(setl! statusline (.. "%!" (vlua statusline.enable))))
   (au! [WinLeave BufLeave] * #(setl! statusline " ")))