19 lines
606 B
Markdown
19 lines
606 B
Markdown
# Function require
|
|
|
|
{{since('20230320-124340-559cb7b0')}}
|
|
|
|
Will clone the plugin repo if it doesn't already
|
|
exist and store it in the runtime dir under `plugins/NAME` where
|
|
`NAME` is derived from the repo URL. Once cloned, the repo is
|
|
NOT automatically updated when `require` is called again.
|
|
|
|
The function takes a single string parameter, the Git repo URL
|
|
|
|
Only HTTP(S) or local filesystem repos are allowed for the git URL.
|
|
|
|
```lua
|
|
local remote_plugin = wezterm.plugin.require 'https://github.com/owner/repo'
|
|
local local_plugin =
|
|
wezterm.plugin.require 'file:///Users/developer/projects/my.Plugin'
|
|
```
|