# wezterm-types


This project aims to provide LuaCATS-like [LuaLS type annotations](https://luals.github.io/wiki/annotations/)
for your [WezTerm](https://github.com/wezterm/wezterm) config.
Example videos can be found in [EXAMPLES.md](https://github.com/DrKJeff16/wezterm-types/blob/main/EXAMPLES.md).
NOTE: For any missing or unclear types you should always double-check the [WezTerm Lua Reference](https://wezterm.org/config/lua/general.html).
If using an annotated plugin featured in this repository please refer to its author
for any unclear types.
## Features
- LuaCATS-like type annotations
- Built-in colorschemes included (`config.color_scheme`)
- Up-to-date descriptions
- Community plugin annotations
- [Neovim](https://neovim.io/) support:
- Through the built-in LSP API
- Through [folke/lazydev.nvim](https://github.com/folke/lazydev.nvim)
- VSCode/VSCodium support by cloning this into `~/.config/wezterm`, then editing your config
in that directory
---
## Table of Contents
- [Installation](#installation)
- [Featured Plugins](#featured-plugins)
- [Usage](#usage)
---
## Installation
LuaRocks
You can install `wezterm-types` using LuaRocks:
```bash
luarocks install wezterm-types # Global install
luarocks install --local wezterm-types # Local install
```
To get it running in Neovim please refer to [this discussion](https://github.com/DrKJeff16/wezterm-types/discussions/93).
Neovim
We recommend using [lazy.nvim](https://github.com/folke/lazy.nvim) as a package manager:
```lua
{
'DrKJeff16/wezterm-types',
version = false, -- Get the latest version
},
```
---
## Featured Plugins
This project also features type annotations for various WezTerm plugins.
**_If you want to add your plugin, please read [`CONTRIBUTING.md`](https://github.com/DrKJeff16/wezterm-types/blob/main/CONTRIBUTING.md#plugins)._**
| Plugin | Documentation | Maintenance |
| --- | --- | --- |
| [ai-commander.wezterm](https://github.com/dimao/ai-commander.wezterm) | [docs/ai-commander.md](./docs/ai-commander.md)
[:h wezterm-types-plugin.ai-commander.txt](./doc/wezterm-types-plugin.ai-commander.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#ai-commander)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/ai-commander-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/ai-commander-upstream.html) |
| [ai-helper.wezterm](https://github.com/Michal1993r/ai-helper.wezterm) | [docs/ai-helper.md](./docs/ai-helper.md)
[:h wezterm-types-plugin.ai-helper.txt](./doc/wezterm-types-plugin.ai-helper.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#ai-helper)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/ai-helper-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/ai-helper-upstream.html) |
| [bar.wezterm](https://github.com/adriankarlen/bar.wezterm) | [docs/bar.md](./docs/bar.md)
[:h wezterm-types-plugin.bar.txt](./doc/wezterm-types-plugin.bar.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#bar)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/bar-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/bar-upstream.html) |
| [battery.wez](https://github.com/rootiest/battery.wez) | [docs/battery.md](./docs/battery.md)
[:h wezterm-types-plugin.battery.txt](./doc/wezterm-types-plugin.battery.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#battery)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/battery-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/battery-upstream.html) |
| [chord.wz](https://github.com/sravioli/chord.wz) | [docs/chord.md](./docs/chord.md)
[:h wezterm-types-plugin.chord.txt](./doc/wezterm-types-plugin.chord.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#chord)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/chord-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/chord-upstream.html) |
| [dev.wezterm](https://github.com/ChrisGVE/dev.wezterm) | [docs/dev.md](./docs/dev.md)
[:h wezterm-types-plugin.dev.txt](./doc/wezterm-types-plugin.dev.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#dev)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/dev-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/dev-upstream.html) |
| [kanagawa.wz](https://github.com/sravioli/kanagawa.wz) | [docs/kanagawa.md](./docs/kanagawa.md)
[:h wezterm-types-plugin.kanagawa.txt](./doc/wezterm-types-plugin.kanagawa.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#kanagawa)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/kanagawa-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/kanagawa-upstream.html) |
| [lantern.wz](https://github.com/sravioli/lantern.wz) | [docs/lantern.md](./docs/lantern.md)
[:h wezterm-types-plugin.lantern.txt](./doc/wezterm-types-plugin.lantern.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#lantern)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/lantern-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/lantern-upstream.html) |
| [lib.wezterm](https://github.com/ChrisGVE/lib.wezterm) | [docs/lib.md](./docs/lib.md)
[:h wezterm-types-plugin.lib.txt](./doc/wezterm-types-plugin.lib.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#lib)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/lib-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/lib-upstream.html) |
| [listeners.wezterm](https://github.com/ChrisGVE/listeners.wezterm) | [docs/listeners.md](./docs/listeners.md)
[:h wezterm-types-plugin.listeners.txt](./doc/wezterm-types-plugin.listeners.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#listeners)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/listeners-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/listeners-upstream.html) |
| [log.wz](https://github.com/sravioli/log.wz) | [docs/log.md](./docs/log.md)
[:h wezterm-types-plugin.log.txt](./doc/wezterm-types-plugin.log.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#log)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/log-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/log-upstream.html) |
| [memo.wz](https://github.com/sravioli/memo.wz) | [docs/memo.md](./docs/memo.md)
[:h wezterm-types-plugin.memo.txt](./doc/wezterm-types-plugin.memo.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#memo)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/memo-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/memo-upstream.html) |
| [modal.wezterm](https://github.com/MLFlexer/modal.wezterm) | [docs/modal.md](./docs/modal.md)
[:h wezterm-types-plugin.modal.txt](./doc/wezterm-types-plugin.modal.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#modal)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/modal-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/modal-upstream.html) |
| [nu-utf8-hack.wezterm](https://github.com/KawaiiSelbst/nu_utf8_hack.wez) | [docs/nu-utf8-hack.md](./docs/nu-utf8-hack.md)
[:h wezterm-types-plugin.nu-utf8-hack.txt](./doc/wezterm-types-plugin.nu-utf8-hack.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#nu-utf8-hack)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/nu-utf8-hack-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/nu-utf8-hack-upstream.html) |
| [passrelay.wezterm](https://github.com/dfaerch/passrelay.wezterm) | [docs/passrelay.md](./docs/passrelay.md)
[:h wezterm-types-plugin.passrelay.txt](./doc/wezterm-types-plugin.passrelay.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#passrelay)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/passrelay-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/passrelay-upstream.html) |
| [pinned-tabs.wezterm](https://github.com/selectnull/pinned-tabs.wezterm) | [docs/pinned-tabs.md](./docs/pinned-tabs.md)
[:h wezterm-types-plugin.pinned-tabs.txt](./doc/wezterm-types-plugin.pinned-tabs.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#pinned-tabs)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/pinned-tabs-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/pinned-tabs-upstream.html) |
| [pivot_panes.wezterm](https://github.com/ChrisGVE/pivot_panes.wezterm) | [docs/pivot-panes.md](./docs/pivot-panes.md)
[:h wezterm-types-plugin.pivot-panes.txt](./doc/wezterm-types-plugin.pivot-panes.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#pivot-panes)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/pivot-panes-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/pivot-panes-upstream.html) |
| [presentation.wez](https://github.com/xarvex/presentation.wez) | [docs/presentation.md](./docs/presentation.md)
[:h wezterm-types-plugin.presentation.txt](./doc/wezterm-types-plugin.presentation.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#presentation)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/presentation-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/presentation-upstream.html) |
| [quick_domains.wezterm](https://github.com/DavidRR-F/quick_domains.wezterm) | [docs/quick-domains.md](./docs/quick-domains.md)
[:h wezterm-types-plugin.quick-domains.txt](./doc/wezterm-types-plugin.quick-domains.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#quick-domains)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/quick-domains-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/quick-domains-upstream.html) |
| [quickselect.wezterm](https://github.com/quantonganh/quickselect.wezterm) | [docs/quickselect.md](./docs/quickselect.md)
[:h wezterm-types-plugin.quickselect.txt](./doc/wezterm-types-plugin.quickselect.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#quickselect)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/quickselect-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/quickselect-upstream.html) |
| [resurrect.wezterm](https://github.com/MLFlexer/resurrect.wezterm) | [docs/resurrect.md](./docs/resurrect.md)
[:h wezterm-types-plugin.resurrect.txt](./doc/wezterm-types-plugin.resurrect.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#resurrect)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/resurrect-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/resurrect-upstream.html) |
| [ribbon.wz](https://github.com/sravioli/ribbon.wz) | [docs/ribbon.md](./docs/ribbon.md)
[:h wezterm-types-plugin.ribbon.txt](./doc/wezterm-types-plugin.ribbon.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#ribbon)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/ribbon-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/ribbon-upstream.html) |
| [rosepine](https://github.com/neapsix/wezterm) | [docs/rosepine.md](./docs/rosepine.md)
[:h wezterm-types-plugin.rosepine.txt](./doc/wezterm-types-plugin.rosepine.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#rosepine)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/rosepine-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/rosepine-upstream.html) |
| [sessionizer.wezterm](https://github.com/mikkasendke/sessionizer.wezterm) | [docs/sessionizer.md](./docs/sessionizer.md)
[:h wezterm-types-plugin.sessionizer.txt](./doc/wezterm-types-plugin.sessionizer.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#sessionizer)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/sessionizer-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/sessionizer-upstream.html) |
| [sigil.wz](https://github.com/sravioli/sigil.wz) | [docs/sigil.md](./docs/sigil.md)
[:h wezterm-types-plugin.sigil.txt](./doc/wezterm-types-plugin.sigil.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#sigil)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/sigil-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/sigil-upstream.html) |
| [smart_workspace_switcher.wezterm](https://github.com/MLFlexer/smart_workspace_switcher.wezterm) | [docs/smart-workspace-switcher.md](./docs/smart-workspace-switcher.md)
[:h wezterm-types-plugin.smart-workspace-switcher.txt](./doc/wezterm-types-plugin.smart-workspace-switcher.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#smart-workspace-switcher)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/smart-workspace-switcher-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/smart-workspace-switcher-upstream.html) |
| [stack.wez](https://github.com/bad-noodles/stack.wez) | [docs/stack.md](./docs/stack.md)
[:h wezterm-types-plugin.stack.txt](./doc/wezterm-types-plugin.stack.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#stack)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/stack-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/stack-upstream.html) |
| [sync-panes.wez](https://github.com/annie444/sync-panes.wez) | [docs/sync-panes.md](./docs/sync-panes.md)
[:h wezterm-types-plugin.sync-panes.txt](./doc/wezterm-types-plugin.sync-panes.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#sync-panes)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/sync-panes-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/sync-panes-upstream.html) |
| [tabline.wez](https://github.com/michaelbrusegard/tabline.wez) | [docs/tabline.md](./docs/tabline.md)
[:h wezterm-types-plugin.tabline.txt](./doc/wezterm-types-plugin.tabline.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#tabline)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/tabline-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/tabline-upstream.html) |
| [tabsets.wezterm](https://github.com/srackham/tabsets.wezterm) | [docs/tabsets.md](./docs/tabsets.md)
[:h wezterm-types-plugin.tabsets.txt](./doc/wezterm-types-plugin.tabsets.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#tabsets)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/tabsets-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/tabsets-upstream.html) |
| [toggle_terminal.wez](https://github.com/zsh-sage/toggle_terminal.wez) | [docs/toggle-terminal.md](./docs/toggle-terminal.md)
[:h wezterm-types-plugin.toggle-terminal.txt](./doc/wezterm-types-plugin.toggle-terminal.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#toggle-terminal)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/toggle-terminal-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/toggle-terminal-upstream.html) |
| [warp.wz](https://github.com/sravioli/warp.wz) | [docs/warp.md](./docs/warp.md)
[:h wezterm-types-plugin.warp.txt](./doc/wezterm-types-plugin.warp.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#warp)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/warp-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/warp-upstream.html) |
| [wez-pain-control](https://github.com/sei40kr/wez-pain-control) | [docs/wez-pain-control.md](./docs/wez-pain-control.md)
[:h wezterm-types-plugin.wez-pain-control.txt](./doc/wezterm-types-plugin.wez-pain-control.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#wez-pain-control)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/wez-pain-control-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/wez-pain-control-upstream.html) |
| [wez-tmux](https://github.com/sei40kr/wez-tmux) | [docs/wez-tmux.md](./docs/wez-tmux.md)
[:h wezterm-types-plugin.wez-tmux.txt](./doc/wezterm-types-plugin.wez-tmux.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#wez-tmux)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/wez-tmux-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/wez-tmux-upstream.html) |
| [wezterm-agent-deck](https://github.com/Eric162/wezterm-agent-deck) | [docs/agent-deck.md](./docs/agent-deck.md)
[:h wezterm-types-plugin.agent-deck.txt](./doc/wezterm-types-plugin.agent-deck.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#agent-deck)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/agent-deck-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/agent-deck-upstream.html) |
| [wezterm-attention](https://github.com/pro-vi/wezterm-attention) | [docs/attention.md](./docs/attention.md)
[:h wezterm-types-plugin.attention.txt](./doc/wezterm-types-plugin.attention.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#attention)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/attention-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/attention-upstream.html) |
| [wezterm-cmd-sender](https://github.com/aureolebigben/wezterm-cmd-sender) | [docs/cmd-sender.md](./docs/cmd-sender.md)
[:h wezterm-types-plugin.cmd-sender.txt](./doc/wezterm-types-plugin.cmd-sender.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#cmd-sender)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/cmd-sender-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/cmd-sender-upstream.html) |
| [wezterm-cmdpicker](https://github.com/abidibo/wezterm-cmdpicker) | [docs/cmdpicker.md](./docs/cmdpicker.md)
[:h wezterm-types-plugin.cmdpicker.txt](./doc/wezterm-types-plugin.cmdpicker.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#cmdpicker)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/cmdpicker-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/cmdpicker-upstream.html) |
| [wezterm-config.nvim](https://github.com/winter-again/wezterm-config.nvim) | [docs/wezterm-config.md](./docs/wezterm-config.md)
[:h wezterm-types-plugin.wezterm-config.txt](./doc/wezterm-types-plugin.wezterm-config.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#wezterm-config)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/wezterm-config-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/wezterm-config-upstream.html) |
| [wezterm-quota-limit](https://github.com/EdenGibson/wezterm-quota-limit) | [docs/quota-limit.md](./docs/quota-limit.md)
[:h wezterm-types-plugin.quota-limit.txt](./doc/wezterm-types-plugin.quota-limit.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#quota-limit)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/quota-limit-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/quota-limit-upstream.html) |
| [wezterm-replay](https://github.com/btrachey/wezterm-replay) | [docs/replay.md](./docs/replay.md)
[:h wezterm-types-plugin.replay.txt](./doc/wezterm-types-plugin.replay.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#replay)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/replay-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/replay-upstream.html) |
| [wezterm-sessions](https://github.com/abidibo/wezterm-sessions) | [docs/wezterm-sessions.md](./docs/wezterm-sessions.md)
[:h wezterm-types-plugin.wezterm-sessions.txt](./doc/wezterm-types-plugin.wezterm-sessions.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#wezterm-sessions)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/wezterm-sessions-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/wezterm-sessions-upstream.html) |
| [wezterm-status](https://github.com/yriveiro/wezterm-status) | [docs/wezterm-status.md](./docs/wezterm-status.md)
[:h wezterm-types-plugin.wezterm-status.txt](./doc/wezterm-types-plugin.wezterm-status.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#wezterm-status)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/wezterm-status-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/wezterm-status-upstream.html) |
| [wezterm-sync](https://github.com/dfsramos/wezterm-sync) | [docs/sync.md](./docs/sync.md)
[:h wezterm-types-plugin.sync.txt](./doc/wezterm-types-plugin.sync.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#sync)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/sync-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/sync-upstream.html) |
| [wezterm-tabs](https://github.com/yriveiro/wezterm-tabs) | [docs/wezterm-tabs.md](./docs/wezterm-tabs.md)
[:h wezterm-types-plugin.wezterm-tabs.txt](./doc/wezterm-types-plugin.wezterm-tabs.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#wezterm-tabs)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/wezterm-tabs-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/wezterm-tabs-upstream.html) |
| [wezterm-theme-rotator](https://github.com/koh-sh/wezterm-theme-rotator) | [docs/wezterm-theme-rotator.md](./docs/wezterm-theme-rotator.md)
[:h wezterm-types-plugin.wezterm-theme-rotator.txt](./doc/wezterm-types-plugin.wezterm-theme-rotator.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#wezterm-theme-rotator)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/wezterm-theme-rotator-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/wezterm-theme-rotator-upstream.html) |
| [widgets.wez](https://github.com/usrivastava92/widgets.wez) | [docs/widgets.md](./docs/widgets.md)
[:h wezterm-types-plugin.widgets.txt](./doc/wezterm-types-plugin.widgets.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#widgets)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/widgets-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/widgets-upstream.html) |
| [workspace-picker.wezterm](https://github.com/isseii10/workspace-picker.wezterm) | [docs/workspace-picker.md](./docs/workspace-picker.md)
[:h wezterm-types-plugin.workspace-picker.txt](./doc/wezterm-types-plugin.workspace-picker.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#workspace-picker)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/workspace-picker-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/workspace-picker-upstream.html) |
| [workspacesionizer.wezterm](https://github.com/vieitesss/workspacesionizer.wezterm) | [docs/workspacesionizer.md](./docs/workspacesionizer.md)
[:h wezterm-types-plugin.workspacesionizer.txt](./doc/wezterm-types-plugin.workspacesionizer.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#workspacesionizer)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/workspacesionizer-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/workspacesionizer-upstream.html) |
| [wsinit.wezterm](https://github.com/JuanraCM/wsinit.wezterm) | [docs/wsinit.md](./docs/wsinit.md)
[:h wezterm-types-plugin.wsinit.txt](./doc/wezterm-types-plugin.wsinit.txt) | [](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/#wsinit)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/wsinit-reviewed.html)
[](https://drkjeff16.github.io/wezterm-types/plugin-maintenance/refs/wsinit-upstream.html) |
---
## Usage
After installing the types, add the type annotations to `wezterm` and `config` respectively
when running `require("wezterm")` in your configuration.
A useful example:
```lua
-- WezTerm configuration
local wezterm = require("wezterm") --[[@as Wezterm]]
local config = wezterm.config_builder()
config.window_decorations = "RESIZE|MACOS_FORCE_DISABLE_SHADOW"
return config
```
These annotations enable the **Lua Language Server** to provide proper type checking
and autocompletion for WezTerm configuration options.
### Using lazydev.nvim
If you're using [folke/lazydev.nvim](https://github.com/folke/lazydev.nvim), install it as suggested below:
```lua
{
'folke/lazydev.nvim',
ft = 'lua',
dependencies = { 'DrKJeff16/wezterm-types' },
opts = {
library = {
-- Other library configs...
{ path = 'wezterm-types', mods = { 'wezterm' } },
},
},
}
```
If you download this repo under a diferent name, you can use the following instead:
```lua
{
'folke/lazydev.nvim',
ft = 'lua',
dependencies = {
{
'DrKJeff16/wezterm-types',
name = '', -- CUSTOM DIRECTORY NAME
},
},
opts = {
library = {
-- MAKE SURE TO MATCH THE PLUGIN DIRECTORY'S NAME
{ path = '', mods = { 'wezterm' } },
},
},
}
```
### Using The Built-in Neovim LSP
Add the install path of `wezterm-types` in your `lua_ls` config.
```lua
return {
cmd = { 'lua-language-server' },
filetypes = { 'lua' },
settings = {
Lua = {
workspace = {
library = {
-- Other library paths...
'',
},
},
},
},
}
```
---