I'm sorry that this is not a more useful issue, but I just can't get this plugin to work at all. I installed it using the command on the micro
plugins page:
$ micro -plugin install autofmt
Which yielded this result:
Downloading "autofmt" (1.0.0) from "https://github.com/micro-editor/plugin-channel/releases/download/plugins/micro-autofmt-1.0.0.zip"
One or more plugins installed.
So it seems like installation was successful. However, in a JS project with Prettier installed, I modified a JS file and saved the changes — and nothing happened. I pressed Ctrl+E, typed fmt
, and pressed Enter — and still nothing happened.
So I cloned this repo, entered it, and ran make
, which yielded this result:
mkdir -p ~/.config/micro/plug/micro-autofmt/help
cp autofmt.lua ~/.config/micro/plug/micro-autofmt/autofmt.lua
cp repo.json ~/.config/micro/plug/micro-autofmt/repo.json
cp help/autofmt.md ~/.config/micro/plug/micro-autofmt/help/autofmt.md
There were no errors, so I assume it was successful. I again tried editing the JS file and saving the changes, but still no formatting seemed to be applied. I also pressed Ctrl+E, typed fmt
, and pressed Enter again; but still nothing happened.
I use Prettier in VSCode all the time, and I assumed (perhaps incorrectly) that this plugin would behave pretty much the same way. Is that true? Am I doing something obviously wrong? I'd appreciate any help you can provide! 🙏