Files
LLeMbas-TTY/docs/config/lua/wezterm.plugin/require.md
T
Guennadi Maximov C bf0747f4af docs: fixed many small issues in Lua docs pages (#7124)
* lua: fixed markdown lists not rendering correctly in webpage
* unicode_version: fixed typo in markdown file
* visual_bell: fixed typo in documentation
* load_base16_scheme: added comma for redaction, etc.
* truncate_right: corrected improper punctuation
* mux: improved Lua snippet in `rename_workspace`
* wezterm.color.save_scheme: improved docs
* wezterm.plugin: improved every function's docs
* visual_bell: added missing code enclosures

---------

Signed-off-by: Guennadi Maximov C <g.maxc.fox@protonmail.com>
2026-11-20 04:31:22 +01:00

655 B

wezterm.plugin.require(url)

{{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.

local wezterm = require 'wezterm'

local remote_plugin = wezterm.plugin.require 'https://github.com/owner/repo'
local local_plugin =
  wezterm.plugin.require 'file:///Users/developer/projects/my.Plugin'