vim-codefmt
vim-codefmt copied to clipboard
add lua formatter
This PR adds stylua as an alternative formatter for Lua.
- [x] adds
Styluato README, corrects missing) - [x] find/replace
formatterfiveonewithstylua - [ ]
vroomhas been archived and was unable to get it to build on an M3 MBP but took inspiration fromblack.vroom, should work? I could use some help testing this
Partially addresses #180.
I could use some help testing this
Here ya go: https://github.com/dbarnett/vim-codefmt/commit/4384b264f6ac17856ee723fb6fcd11b8b8769099
I'd also suggest you make --stdin-filepath conditional and pass the short name instead of full path, like I did for another formatter here: https://github.com/google/vim-codefmt/blob/e0e113ecfed37309af32b11df8af6fbc17463e0d/autoload/codefmt/ruff.vim#L23-L25. Pretty sure formatters don't need or want the full absolute path.
And vroom is unarchived now FWIW.