LuaFormatter
Code formatter for Lua (by Koihik)
EmmyLuaCodeStyle
fast, powerful, and feature-rich Lua formatting and checking tool. (by CppCXY)
LuaFormatter | EmmyLuaCodeStyle | |
---|---|---|
5 | 6 | |
668 | 128 | |
- | - | |
0.0 | 8.6 | |
9 months ago | 6 days ago | |
C++ | C++ | |
Apache License 2.0 | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
LuaFormatter
Posts with mentions or reviews of LuaFormatter.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-04.
- [Neovim] [Question] Où puis-je trouver l'outil de formateur pour Lua?
-
question about plugins
Use and enforce a style with StyLua) or LuaFormatte and neovim can autoformat for ya.
-
StyLua now supports collapsing simple statements
Back in the day when I was making a decision about which formatter to use (I believe, it was between StyLua and LuaFormatter) these observations sealed the deal: - It was already used by many plugins and Neovim itself. - It made handy binary releases which I could download and use right away. - It had easy-to-use github action for Continuous Integration checks.
-
Lua Indentation Woes
Have you tried any external programs to format your code instead? That's what I usually do. Just set 'formatprg', and use gq to format the code. With a quick search I found LuaFormatter, and StyLua, but I can't say if they format the code the way you want. In my experience, external code formaters will do a better job, and they have more options to tweak as well.
-
Ver 5 will be out soon, and I have a question.Is there any advantage to using init.lua?
advantage: - you can write init.lua using LSP - autoformat https://github.com/Koihik/LuaFormatter - Lint https://github.com/mpeterv/luacheck
EmmyLuaCodeStyle
Posts with mentions or reviews of EmmyLuaCodeStyle.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-08-29.
- Can one have the built-in LSP format command replace double quotes with single quotes?
- Looking for extensive lua formatter.
- sumneko_lua not respecting project's stylua.toml
-
StyLua now supports collapsing simple statements
The sumnkeo_ lua formatter uses EmmyLuaCodeStyle behind the scenes which you can really fine tune to your own liking with .editorconfig.
-
sumneko_lua now supports code formatting!
Taking a look at the PR, looks like the server is using EmmyLuaCodeStyle, which tries to respect equal sign alignment when it's able to detect that.
What are some alternatives?
When comparing LuaFormatter and EmmyLuaCodeStyle you can also consider the following projects:
StyLua - An opinionated Lua code formatter
lua-language-server - A language server that offers Lua language support - programmed in Lua
luacheck - A tool for linting and static analysis of Lua code.
uncrustify - Code beautifier
mscharconv - <charconv> from Microsoft STL, but multi-platform
verible - Verible is a suite of SystemVerilog developer tools, including a parser, style-linter, formatter and language server
NeoClear.lua - save you from the "what the hell?" moment
molokai.nvim - Molokai colorscheme for Neovim.
luau-lsp - Language Server Implementation for Luau