Micro plugins are implemented using Lua and must be placed in the ~/.config/micro/plug directory. Each plugin must reside in its own subdirectory and contain at least one Lua file and a repo.json file.
A typical plugin directory structure looks like this:
~/.config/micro/plug/my-plugin/
my-plugin.lua
repo.json
help/
my-plugin.md
The repo.json file
The repo.json file provides metadata about the plugin, such as its name, website, description, version, and dependencies. This file is required for the plugin to be recognized.
Runtime files
Plugins can include additional runtime files that micro will automatically load. Supported types include:
- Colorschemes
- Syntax files
- Help files
- Plugin files
- Syntax header files
While no specific directory structure is enforced for these files, it is recommended to keep them in their own subdirectories within the plugin folder.
{
"name": "go-plugin",
"website": "https://github.com/micro-editor/updated-plugins",
"description": "A plugin for Go support",
"version": "1.0.0"
}