From 7f52f055802f244fee7de6de000384b9b0ccb09d Mon Sep 17 00:00:00 2001 From: Kevin Ernst Date: Sun, 11 May 2025 09:06:10 -0400 Subject: [PATCH] Add font and window geometry settings to "Quick Start" example config (#6412) * Add initial rows/cols to config quick start * Add 'docs' target to Makefile --- Makefile | 7 ++++++- docs/config/files.md | 19 ++++++++++++++++--- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index bf51361e3..e2f78053e 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: all fmt build check test +.PHONY: all fmt build check test docs servedocs all: build @@ -22,3 +22,8 @@ build: fmt: cargo +nightly fmt +docs: + ci/build-docs.sh + +servedocs: + ci/build-docs.sh serve diff --git a/docs/config/files.md b/docs/config/files.md index 1a11e9592..d4fe04b5f 100644 --- a/docs/config/files.md +++ b/docs/config/files.md @@ -11,15 +11,28 @@ local wezterm = require 'wezterm' -- This will hold the configuration. local config = wezterm.config_builder() --- This is where you actually apply your config choices +-- This is where you actually apply your config choices. --- For example, changing the color scheme: +-- For example, changing the initial geometry for new windows: +config.initial_cols = 120 +config.initial_rows = 28 + +-- or, changing the font size and color scheme. +config.font_size = 10 config.color_scheme = 'AdventureTime' --- and finally, return the configuration to wezterm +-- Finally, return the configuration to wezterm: return config ``` +For more details, see: + +- [wezterm.config_builder](lua/wezterm/config_builder.md) +- [initial_cols](lua/config/initial_cols.md) +- [initial_rows](lua/config/initial_rows.md) +- [font_size](lua/config/font_size.md) +- [color_scheme](lua/config/color_schemes.md) + ## Configuration Files `wezterm` will look for a [lua](https://www.lua.org/manual/5.3/manual.html) -- 2.51.2