micro-editor / plugin-channel

Official plugin channel for micro
226 stars 49 forks source link

Update Nord Colors name again due to a bug #62

Closed KiranWells closed 3 years ago

KiranWells commented 3 years ago

Due to a bug/feature of Lua (or for some other reason), plugins with a dash in their name will not have their .lua files run.

I will be posting a documentation issue on the main Micro account related to this, but here are the details for convenience:

My colorscheme plugin failed to properly install, as the colorschemes were not being included in the runtime files. After some troubleshooting, I discovered that the .lua file was not doing anything, even when it had deliberate errors. When I removed the dash from the plugin and .lua file name, the code ran normally.

I assume this is some issue with lua not supporting module names with dashes, or some other limitation. It is not a large issue, but I believe it should be mentioned in the plugin documentation.

As a side note, I believe the other plugins with dashes will not be run either. This likely has not been an issue so far as they are included by default.