Format on Save is a micro text editor
plugin that automatically formats source code when saving a file.
By default, it supports Lua via
StyLua and several other languages.
You can also configure custom formatters per filetype using the plugin's
settings.
See help/fmtonsave.md for more details.
Place the plugin folder in ~/.config/micro/plug/fmtonsave/, or clone it
directly from the GitHub repository:
mkdir -p ~/.config/micro/plug
git clone https://github.com/micro-garden/fmtonsave-plugin ~/.config/micro/plug/fmtonsaveAlternatively, this plugin is also available through the unofficial plugin
channel:
https://github.com/micro-garden/unofficial-plugin-channel
You can install it by adding the channel and then using plugin install.
MIT.
Aki Kareha (aki@kareha.org)