update things

This commit is contained in:
Cynthia Foxwell 2022-08-12 12:36:38 -06:00
parent 579fad9015
commit 6fb41b4ee7
3 changed files with 162 additions and 31 deletions

View file

@ -1,15 +1,8 @@
local wezterm = require("wezterm");
return {
default_prog = {"D:/Programs/git-sdk-64/usr/bin/zsh", "-i"},
default_cwd = "D:/Downloads",
font = wezterm.font_with_fallback({
"Terminus (TTF)",
"SijiNGWindows",
"Unifont",
}),
local config = {
font_size = 9.0,
freetype_load_target = "Mono",
color_scheme = "everforest",
color_scheme = "Tokyo Night",
color_schemes = {
everforest = {
foreground = "#d3c6aa",
@ -42,6 +35,7 @@ return {
"#35a77c",
"#9da9a0",
},
tab_bar = {
background = "#1e2327",
active_tab = {
@ -69,6 +63,67 @@ return {
},
},
},
["Tokyo Night"] = {
background = "#1a1b26",
foreground = "#a9b1d6",
cursor_fg = "#444b6a",
cursor_bg = "#9da9a0",
cursor_border = "#9da9a0",
selection_fg = "#787c99",
selection_bg = "#444b6a",
ansi = {
"#32344a",
"#f7768e",
"#9ece6a",
"#e0af68",
"#7aa2f7",
"#ad8ee6",
"#449dab",
"#787c99",
},
brights = {
"#444b6a",
"#ff7a93",
"#b9f27c",
"#ff9e64",
"#7da6ff",
"#bb9af7",
"#0db9d7",
"#acb0d0",
},
tab_bar = {
background = "#16161e",
active_tab = {
bg_color = "#1a1b26",
fg_color = "#a9b1d6",
},
inactive_tab = {
bg_color = "#16161e",
fg_color = "#787c99",
},
inactive_tab_hover = {
bg_color = "#16161e",
fg_color = "#a9b1d6",
italic = false,
},
new_tab = {
bg_color = "#16161e",
fg_color = "#9da9a0",
italic = false,
},
new_tab_hover = {
bg_color = "#16161e",
fg_color = "#a9b1d6",
italic = false,
},
},
}
},
window_padding = {
left = 4,
@ -78,10 +133,48 @@ return {
},
use_fancy_tab_bar = false,
tab_bar_at_bottom = true,
unix_domains = {
launch_menu = {},
keys = {
-- disable search (ctrl f = tab)
{key = "f", mods = "CTRL|SHIFT", action = "DisableDefaultAssignment"},
},
}
if wezterm.target_triple == "x86_64-pc-windows-msvc" then
config.default_prog = {"D:/Programs/git-sdk-64/usr/bin/zsh", "-i"}
config.default_cwd = "D:/Downloads"
config.font = wezterm.font_with_fallback({
"Terminus (TTF)",
"SijiNGWindows",
"Unifont",
})
config.unix_domains = {
{
name = "unix",
},
},
default_gui_startup_args = {"connect", "unix"},
}
}
config.default_gui_startup_args = {"connect", "unix"}
table.insert(config.launch_menu, {
label = "MSYS2",
args = {
"C:/msys64/msys2_shell.cmd",
"-no-start","-defterm","-msys2",
},
})
table.insert(config.launch_menu, {
label = "MinGW64",
args = {
"C:/msys64/msys2_shell.cmd",
"-no-start","-defterm","-mingw64",
},
})
else
config.font = wezterm.font_with_fallback({
"Terminus",
"Siji",
"Unifont",
})
end
return config

View file

@ -272,7 +272,8 @@ EOF
" keys
tnoremap <Esc> <C-\><C-n>
map! <silent> <C-f> <C-i>
inoremap <silent> <C-f> <C-i>
inoremap <silent> <C-S-f> <C-d>
map! <silent> <Tab> <Esc>
cnoremap <silent> <Tab> <C-c>