Reformats your Lua source code. The program will attempt to automatically use the current directory's .lua-format file if no config file is passed in the command line. If none is found, it will try to locate a .lua-format file in a parent directory recursively. On Linux, it will use $XDG_CONFIG_HOME/luaformatter/config.yaml if .lua-format does not exist. In case there's no file, it will fall back to the default configuration. The program will give the top priority to the configuration values given in the command line, then to the configuration files, and finally to the hard-coded default values.

Features

  • VS Code support
  • Sublime support
  • The easiest way to install is to use LuaRocks
  • Requires c++ 17 compiler
  • Configuration parameters not specified fallback to their default values
  • Disable formatting for a line or block

Project Samples

Project Activity

See All Activity >

Categories

Code Formatters

License

Apache License V2.0

Follow LuaFormatter

LuaFormatter Web Site

You Might Also Like
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of LuaFormatter!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

C++

Related Categories

C++ Code Formatters

Registered

2023-04-25