mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-01 14:39:39 +00:00
overlays/iosevka: refactor family name in spacing overlay
This commit is contained in:
parent
9230f7b378
commit
bc67b4226f
3 changed files with 16 additions and 17 deletions
|
|
@ -1,24 +1,24 @@
|
|||
{ lib }:
|
||||
|
||||
let
|
||||
list = [
|
||||
{ spacing = "normal"; }
|
||||
{
|
||||
adjustFamily = old: old;
|
||||
spacing = "normal";
|
||||
}
|
||||
|
||||
# Iosevka + Ghostty makes "…" display in a odd way.
|
||||
# We use "term" width to avoid this.
|
||||
# https://github.com/ghostty-org/ghostty/discussions/10335
|
||||
{ spacing = "term"; }
|
||||
{
|
||||
adjustFamily = old: old + "Term";
|
||||
spacing = "term";
|
||||
}
|
||||
];
|
||||
in
|
||||
|
||||
map (
|
||||
{ spacing }@cfg:
|
||||
let
|
||||
name = lib.toSentenceCase spacing;
|
||||
in
|
||||
final: prev:
|
||||
cfg
|
||||
// {
|
||||
family = prev.family + "-${name}";
|
||||
{ adjustFamily, spacing }:
|
||||
final: prev: {
|
||||
family = adjustFamily prev.family;
|
||||
inherit spacing;
|
||||
}
|
||||
) list
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue