Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add lua formatter #237

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

lamchau
Copy link

@lamchau lamchau commented Jul 8, 2024

This PR adds stylua as an alternative formatter for Lua.

  • adds Stylua to README, corrects missing )
  • find/replace formatterfiveone with stylua
  • vroom has been archived and was unable to get it to build on an M3 MBP but took inspiration from black.vroom, should work? I could use some help testing this

Partially addresses #180.

@dbarnett
Copy link
Contributor

I could use some help testing this

Here ya go: dbarnett@4384b26

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:

if !empty(@%)
let l:cmd += ['--stdin-filename=' . @%]
endif
. Pretty sure formatters don't need or want the full absolute path.

And vroom is unarchived now FWIW.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants