From 692f4ba48c5515507c2664937a03d4c5a801bebb Mon Sep 17 00:00:00 2001 From: jdhao Date: Tue, 5 Nov 2024 21:53:52 +0100 Subject: [PATCH] use stylua to format lua files --- after/ftplugin/lua.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/after/ftplugin/lua.vim b/after/ftplugin/lua.vim index 914dd843..cb1abf54 100644 --- a/after/ftplugin/lua.vim +++ b/after/ftplugin/lua.vim @@ -3,3 +3,5 @@ set formatoptions-=o set formatoptions-=r nnoremap :luafile % + +nnoremap f !stylua %