This PR adds `Lean.loadPlugin` which exposes functionality similar to the `lean` executable's `--plugin` option to Lean code. This will allow custom Lean frontends (e.g., Lake, the Lean language server) to also load plugins. --------- Co-authored-by: Sebastian Ullrich <sebasti@nullri.ch>
10 lines
205 B
TOML
10 lines
205 B
TOML
name = "user_plugin"
|
|
defaultTargets = ["UserPlugin", "UserEnvPlugin"]
|
|
|
|
[[lean_lib]]
|
|
name = "UserPlugin"
|
|
defaultFacets = ["shared"]
|
|
|
|
[[lean_lib]]
|
|
name = "UserEnvPlugin"
|
|
defaultFacets = ["shared"]
|