diff --git a/docs/config/lua/wezterm/nerdfonts.md b/docs/config/lua/wezterm/nerdfonts.md index 7b5d1410d..7818fd210 100644 --- a/docs/config/lua/wezterm/nerdfonts.md +++ b/docs/config/lua/wezterm/nerdfonts.md @@ -18,9 +18,9 @@ WezTerm includes `Nerd Font Symbols Font` as a default font fallback which means that these special symbols are available even without requiring you to use a patched font. -This example shows how to lookup `wezterm.nerdfonts.mdi_clock`, -the Material Design Icons glyph representing a clock, and use -that together with the current date/time in the status area: +This example shows how to lookup `wezterm.nerdfonts.fa_clock_o`, the Font +Awesome glyph representing a clock, and use that together with the current +date/time in the status area: ```lua local wezterm = require 'wezterm' @@ -30,11 +30,20 @@ wezterm.on('update-right-status', function(window, pane) local date = wezterm.strftime '%a %b %-d %H:%M ' window:set_right_status(wezterm.format { - { Text = wezterm.nerdfonts.mdi_clock .. ' ' .. date }, + { Text = wezterm.nerdfonts.fa_clock_o .. ' ' .. date }, }) end) ``` +{{since('nightly')}} + +The bundled `Nerd Font Symbols Font` was updated to version 3.0 which, +unfortunately, makes [breaking +changes](https://github.com/ryanoasis/nerd-fonts/releases/tag/v3.0.0) to a +number of symbol assignments, and renames all of the Material Design Icons so +that they no longer have an `mdi_` prefix and instead have an `md_` prefix. + + The following symbols are defined: