From bdd725ee7114ac870b218698f296b9b0c9e4def7 Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Tue, 27 Aug 2024 15:46:49 +0200 Subject: [PATCH] enable ligatures for monaspice --- home/base/programs/wezterm.nix | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/home/base/programs/wezterm.nix b/home/base/programs/wezterm.nix index f7659a0..deb1c1e 100644 --- a/home/base/programs/wezterm.nix +++ b/home/base/programs/wezterm.nix @@ -7,10 +7,26 @@ local wezterm = require 'wezterm' return { - font = wezterm.font 'MonaspiceNe Nerd Font', front_end = "WebGpu", enable_tab_bar = false, - enable_wayland = false + enable_wayland = false, + font = wezterm.font_with_fallback { + { family = "MonaspiceNe Nerd Font", + harfbuzz_features = { + 'calt', + 'liga', + 'ss01', -- ligatures related to the equals glyph like != and ===. + 'ss02', -- ligatures related to the greater than or less than operators. + 'ss03', -- ligatures related to arrows like -> and =>. + 'ss04', -- ligatures related to markup, like . + 'ss05', -- ligatures related to the F# programming language, like |>. + 'ss06', -- ligatures related to repeated uses of # such as ## or ###. + 'ss07', -- ligatures related to the asterisk like ***. + 'ss08', -- ligatures related to combinations like .= or .-. + 'ss09', -- ligatures related to combinations of the greater/less than and equals signs, like <=>,>>, and =<<. + } + } + } } ''; };