Skip to content

Commit

Permalink
wezterm: fix tab box glyphs after update (NerdFont v3 breaking changes).
Browse files Browse the repository at this point in the history
  • Loading branch information
damncabbage committed Aug 29, 2023
1 parent 04e5c0b commit b9c06f8
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .config/wezterm/wezterm.lua
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
local wezterm = require 'wezterm'
local act = wezterm.action

local io = require 'io';
local os = require 'os';

---------- Tab Titles ----------
-- TODO: for some reason wezterm.nerdfonts.mdi_numeric_#_outline (et al) are missing in this version.
local box_glyphs = {
filled = { [0] = '', '', '', '', '', '', '', '', '', '' },
outline = { [0] = '', '', '', '', '', '', '', '', '', '' },
}
local box_types = { outline = 'outline', filled = 'filled' }
local box_types = { outline = 'box_outline', filled = 'box' }
local box = function(num, type)
return box_glyphs[type][num] or ('[' .. num .. ']')
return wezterm.nerdfonts['md_numeric_' .. num .. '_' .. type]
end

wezterm.on(
Expand Down

0 comments on commit b9c06f8

Please sign in to comment.