diff options
author | sefidel <contact@sefidel.net> | 2024-05-19 01:15:57 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2024-05-19 01:15:57 +0900 |
commit | 1442e6674d118a38f314a803b7713e63377da1b0 (patch) | |
tree | a34d5b9393455fe722e4c42bf07f0a7d1f4addd0 /fnl | |
parent | a94f39f105fcc94f3092ea6360215d1b3f2c2cfa (diff) | |
download | nvimrc-1442e6674d118a38f314a803b7713e63377da1b0.tar.gz nvimrc-1442e6674d118a38f314a803b7713e63377da1b0.zip |
chore(statusline): use vlua macro
Diffstat (limited to 'fnl')
-rw-r--r-- | fnl/nvrc/statusline.fnl | 3 |
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 " "))) |