-
-
Notifications
You must be signed in to change notification settings - Fork 24
Contributing
This is the short version. For the full contributing guide, see CONTRIBUTING.md.
- Fork the repository.
- Create a branch from
main:git switch -c feat/my-feature - Make your changes.
- Commit using Conventional Commits (enforced via cocogitto).
- Push and open a Pull Request.
Add a Lantern flame under the relevant plugin or user flame directory. The file
must export glow() and ignite() functions. See
Customization - Adding a colorscheme for
the full template.
Add a Lantern font flame. See Customization - Adding a font preset.
Create a new wick with require("plugs.lantern").add_wick(...) and back it with
inline flames, module flames, or flame_dirs. See
Customization - Creating custom Lantern wicks.
- Check open issues for something to work on.
- For new features, open an issue first to discuss the approach.
- Follow the code style described below.
- Indentation: 2 spaces.
- Naming:
snake_casefor variables and functions,PascalCasefor class-like types (e.g.,Config,Ribbon,Lantern.Wick). - Type annotations: use LuaCATS
@class,@param,@return,@fieldannotations for all public APIs. The documentation is auto-generated from these. - Module pattern: modules typically create a local
M = {}table, populate it, andreturn M. - Lazy loading: prefer
requireinside functions for heavy dependencies, or use plugin-level cached discovery when a feature depends on filesystem scans.
This project uses Conventional Commits:
<type>(<scope>): <description>
[optional body]
[optional footer(s)]
Types used in this project:
| Type | Description | Appears in changelog |
|---|---|---|
feat |
New feature | Yes |
fix |
Bug fix | Yes |
refactor |
Code restructuring | Yes |
perf |
Performance improvement | Yes |
style |
Formatting, no logic change | Yes |
docs |
Documentation only | Yes |
test |
Adding or updating tests | Yes |
ci |
CI/CD changes | Yes |
chore |
Maintenance tasks | No |
hotfix |
Urgent fix | Yes |
release |
Release preparation | No |
You can install cocogitto to validate your commits before pushing:
cog checkSee the Architecture page for a detailed module breakdown, config load order, and design patterns used throughout the project.
sravioli/wezterm's wiki © 2026 by sravioli is licensed under Creative Commons Attribution-NonCommercial 4.0 International
User Guide
Reference
Community