StyLua
StyLua copied to clipboard
An opinionated Lua code formatter
Hey there, I'm currently trying to find a way to let StyLua still use the available space left before breaking up function arguments. The current version turns this ```lua local...
The Cargo.lock file in the last tagged release 0.14.3 is not up to date with Cargo.toml. This breaks distro packaging that target reproducible builds. We can of course get it...
I've recreated the issue because now the full-moon has been rewritten. @JohnnyMorganz Hi! I recently asked the creator of full-moon about when the parse rewrite will be done and he...
TODO: - Use released version - Configurable Lua syntax
It would be nice if the formatter can be configured to stop looking for config files when reached a Git root (e.g. `git rev-parse --show-toplevel`) this will be useful such...
A discussion which continues to happen offline is the decision against config options for StyLua, so I've decided to open an issue on it. My main goal has always been...
The August 2023 release of VSCode included support for batch range formatting, where multiple ranges can be provided in one go. This may be a useful addition to support, and...
LuaCATS offers a way to specify the types through comments. Currently, stylua does not format it. For example, the code below: ```lua ---@param server string ---@param cond fun( root_dir, config):...
Closes #832 ~~So far just some CLI options and tests. Work on implementation pending feedback in issue.~~ All options implemented and tested.
One style choice I've made extensively across many projects that clashes with `stylua` is to add spaces in function definitions between the function name and arguments. ```lua -- like this...