stylua.nvim is a simple plugin that format your Lua code using StyLua
Install this plugin by using your favorite plugin manager
Packer
use({ "wesleimp/stylua.nvim" })
Plug
Plug 'wesleimp/stylua.nvim'
Format you code with a simple command
:lua require("stylua").format()