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
This commit is contained in:
Kevin Ernst 2025-05-11 09:06:10 -04:00 committed by GitHub
parent 408b2016e2
commit 7f52f05580
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 22 additions and 4 deletions

View File

@ -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

View File

@ -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)