https://github.com/micro-garden/fmtonsave-plugin
A micro text editor plugin that auto-format files on save using formatters like StyLua.
https://github.com/micro-garden/fmtonsave-plugin
black clang-format fmt format formatter gofmt micro micro-editor micro-plugin plugin stylua terminal text-editor
Last synced: about 1 month ago
JSON representation
A micro text editor plugin that auto-format files on save using formatters like StyLua.
- Host: GitHub
- URL: https://github.com/micro-garden/fmtonsave-plugin
- Owner: micro-garden
- License: mit
- Created: 2025-07-18T15:31:34.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-08-19T08:46:49.000Z (9 months ago)
- Last Synced: 2025-10-25T15:15:23.799Z (7 months ago)
- Topics: black, clang-format, fmt, format, formatter, gofmt, micro, micro-editor, micro-plugin, plugin, stylua, terminal, text-editor
- Language: Lua
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Format on Save Plugin for Micro
**Format on Save** is a [micro](https://micro-editor.github.io/) text editor
plugin that automatically formats source code when saving a file.
By default, it supports **Lua** via
[StyLua](https://github.com/JohnnyMorganz/StyLua) and several other languages.
You can also configure custom formatters per filetype using the plugin's
settings.
See [help/fmtonsave.md](help/fmtonsave.md) for more details.
## Installation
Place the plugin folder in `~/.config/micro/plug/fmtonsave/`, or clone it
directly from the GitHub repository:
```sh
mkdir -p ~/.config/micro/plug
git clone https://github.com/micro-garden/fmtonsave-plugin ~/.config/micro/plug/fmtonsave
```
Alternatively, 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`.
## License
MIT.
## Author
Aki Kareha (aki@kareha.org)