Skip to content

Commit

Permalink
chore: update wezterm conf
Browse files Browse the repository at this point in the history
  • Loading branch information
ucpr committed Oct 3, 2024
1 parent bca8f48 commit 2a341fb
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mise/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ go = ['latest']
nodejs = ['latest']
rust = ['latest']
terraform = ['latest']
neovim = ['nightly']
neovim = ['v0.10.0']
38 changes: 38 additions & 0 deletions wezterm/wezterm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,49 @@ for i = 1, 9 do
})
end

local SOLID_LEFT_ARROW = wezterm.nerdfonts.ple_honeycomb
local SOLID_RIGHT_ARROW = wezterm.nerdfonts.ple_honeycomb

wezterm.on("format-tab-title", function(tab, tabs, panes, config, hover, max_width)
local background = "#5c6d74"
local foreground = "#FFFFFF"
local edge_background = "none"

if tab.is_active then
background = "#ae8b2d"
foreground = "#FFFFFF"
end
local edge_foreground = background

local title = " " .. wezterm.truncate_right(tab.active_pane.title, max_width - 1) .. " "

return {
{ Background = { Color = edge_background } },
{ Foreground = { Color = edge_foreground } },
{ Text = SOLID_LEFT_ARROW },
{ Background = { Color = background } },
{ Foreground = { Color = foreground } },
{ Text = title },
{ Background = { Color = edge_background } },
{ Foreground = { Color = edge_foreground } },
{ Text = SOLID_RIGHT_ARROW },
}
end)

return {
color_scheme = 'One Dark (Gogh)',
use_ime = true,
font = wezterm.font "Hack Nerd Font",
font_size = 15.0,
window_decorations = "RESIZE",
hide_tab_bar_if_only_one_tab = true,
-- show_new_tab_button_in_tab_bar = false,
-- show_close_tab_button_in_tabs = false,
colors = {
tab_bar = {
inactive_tab_edge = "none",
},
},
window_padding = {
left = 0,
right = 0,
Expand Down

0 comments on commit 2a341fb

Please sign in to comment.