set fmt-onsave false -- Invalid Option
Hi
I am facing issues with the plugin running on the wsl system for Windows (Ubuntu 20.04 LTS).
When typing the option to disable formatting on save I get this:
Running the command CTRL-E > fmt does nothing even when saving the file and reopening it
I am running the latest version of Micro:
Any ideas?
Cheers
What is the result of plugin list within micro? How did you install autofmt?
What is the result of
plugin listwithin micro? How did you install autofmt?
Hi
Thanks for the prompt response
I installed it cloning the repo and running make
The list of installed plugins is this:
I am currently testing with this ugly code:
Doing CTRL+e >> fmt does NOTHING after saving the file.
Executing: CTRL+e >>set fmt-onsave false throws the invalid option error
EDIT: Corrected typo on command
Hi @a11ce
Any ideas? 🤔
Can confirm. This happens when the "fmt-onsave" option is not in the settings.json file.
Once you add it manually, you can then change it with the command.
Edit: The real issue was just a typo, the setting is called autofmt.fmt-onsave. Adding fmt-onsave to the config file only works because of a similar typo in the tryFmt function