This commit is contained in:
max_richter 2023-03-07 17:06:41 +01:00
parent 7fd8d51ec5
commit d08e4b7eda
5 changed files with 371 additions and 75 deletions

View File

@ -36,10 +36,11 @@ plugins=(
docker
asdf
tmux
sudo
nx-completion
you-should-use
sudo
zsh-autosuggestions
zsh-syntax-highlighting
)
eval `dircolors ~/.dircolors`

View File

@ -1,59 +1,58 @@
{
"ChatGPT.nvim": { "branch": "main", "commit": "3f6fd348df53b9d15aa0a58709562cf0a3b4636a" },
"Comment.nvim": { "branch": "master", "commit": "6821b3ae27a57f1f3cf8ed030e4a55d70d0c4e43" },
"ChatGPT.nvim": { "branch": "main", "commit": "1ebbec2053a5d79bfbffc5291396fdbeea41329b" },
"FixCursorHold.nvim": { "branch": "master", "commit": "1900f89dc17c603eec29960f57c00bd9ae696495" },
"LuaSnip": { "branch": "master", "commit": "f7c845749aba6096f041a73a26ba64f3817bab99" },
"alpha-nvim": { "branch": "main", "commit": "b6c7b5d9d6d2633722255abf2be3ecb8733e8d2d" },
"LuaSnip": { "branch": "master", "commit": "9b5be5e9b460fad7134991d3fd0434466959db08" },
"alpha-nvim": { "branch": "main", "commit": "4b0ba68022d8612b04b26844f1ce5e708c0d23b0" },
"autolist.nvim": { "branch": "main", "commit": "f8b4c11b79b0fef77a64b03810839a1abbbc67d5" },
"boole.nvim": { "branch": "main", "commit": "f4f9996f91159e54b8f1893b20e2e599c91bc1bd" },
"catppuccin": { "branch": "main", "commit": "4175759297350557315987d479fb687a9f0b781f" },
"catppuccin": { "branch": "main", "commit": "5e2c9cf8277c42fb634007126c36d765fd176f4a" },
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
"cmp-emoji": { "branch": "main", "commit": "19075c36d5820253d32e2478b6aaf3734aeaafa0" },
"cmp-nvim-lsp": { "branch": "main", "commit": "0e6b2ed705ddcff9738ec4ea838141654f12eeef" },
"cmp-nvim-lua": { "branch": "main", "commit": "f3491638d123cfd2c8048aefaf66d246ff250ca6" },
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"cmp_luasnip": { "branch": "master", "commit": "18095520391186d634a0045dacaa346291096566" },
"copilot-cmp": { "branch": "master", "commit": "976d687a97ed986c3043eccd4449a3cf2476f3d1" },
"copilot.lua": { "branch": "master", "commit": "ca68fc39f656d4025c5e0acc2faf07a28be3a389" },
"flit.nvim": { "branch": "main", "commit": "980e80e8fe44caaeb9de501c8e97a559b17db2f4" },
"friendly-snippets": { "branch": "main", "commit": "6fa50a94ba5378bb73013a6e163376d8e69bd8a5" },
"copilot-cmp": { "branch": "master", "commit": "92535dfd9c430b49ca7d9a7da336c5db65826b65" },
"copilot.lua": { "branch": "master", "commit": "b41d4c9c7d4f5e0272bcf94061b88e244904c56f" },
"flit.nvim": { "branch": "main", "commit": "4c1739137acd3e7f03e2065a7be8a4dc41c7e461" },
"friendly-snippets": { "branch": "main", "commit": "009887b76f15d16f69ae1341f86a7862f61cf2a1" },
"git-conflict.nvim": { "branch": "main", "commit": "80bc8931d4ed8c8c4d289a08e1838fcf4741408d" },
"gitsigns.nvim": { "branch": "main", "commit": "f388995990aba04cfdc7c3ab870c33e280601109" },
"lazy.nvim": { "branch": "main", "commit": "8077428e63feb0f3bf795d53b23ba1695b28ab0e" },
"leap.nvim": { "branch": "main", "commit": "9a69febb2e5a4f5f5a55dd2d7173098fde917bc5" },
"gitsigns.nvim": { "branch": "main", "commit": "3b6c0a6412b31b91eb26bb8f712562cf7bb1d3be" },
"lazy.nvim": { "branch": "main", "commit": "f9ddb2d41b129516faa8ff144f368b1b76f6d48d" },
"leap.nvim": { "branch": "main", "commit": "d34680b16af977928228e57c68e5a162f1649e3c" },
"lsp-format.nvim": { "branch": "master", "commit": "ca0df5c8544e51517209ea7b86ecc522c98d4f0a" },
"lspkind.nvim": { "branch": "master", "commit": "c68b3a003483cf382428a43035079f78474cd11e" },
"lspsaga.nvim": { "branch": "main", "commit": "a626bdeedf2e601f8dcd9274b2d035dd4ee21165" },
"lspsaga.nvim": { "branch": "main", "commit": "894f89199655339fd6c5cdc80dddf63b353e1429" },
"lualine-lsp-progress": { "branch": "master", "commit": "56842d097245a08d77912edf5f2a69ba29f275d7" },
"lualine.nvim": { "branch": "master", "commit": "e99d733e0213ceb8f548ae6551b04ae32e590c80" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "3f9c0ea157e88b08e2d11ec65002eeb6e421f0da" },
"mason.nvim": { "branch": "main", "commit": "01dfdfd36be77cb1195b60d580315bf4e2d8e62c" },
"mini.nvim": { "branch": "main", "commit": "fb5b7db81ad212f873086c1538ecef0ad091739f" },
"neo-tree.nvim": { "branch": "v2.x", "commit": "74040b34278910d9b467fd914862e2a9a1ebacaa" },
"neotest": { "branch": "master", "commit": "b06b0ccbddc61acfe781689da969d2e0117b3dfe" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "e4badf7984f7a5f0ac7dc10657dbedbd99a82f94" },
"mason.nvim": { "branch": "main", "commit": "8dbd5ca28c70f15814d1749717f86da9bfd1c8ba" },
"mini.nvim": { "branch": "main", "commit": "c65901227e5a3671dbcb054745566a1c78f9f0c8" },
"neo-tree.nvim": { "branch": "v2.x", "commit": "aec592bb1f0cf67f7e1123053d1eb17700aa9ed4" },
"neotest": { "branch": "master", "commit": "95f95e346090ad96c657f021ad4d47f93c915598" },
"neotest-jest": { "branch": "main", "commit": "821bb227e31259307db30c88671a1c3724f78637" },
"neotest-vitest": { "branch": "main", "commit": "d6577b191e16c174bffbec1eadfcd65c22fdcc0d" },
"no-neck-pain.nvim": { "branch": "main", "commit": "cefd610a8c0d6e96ca43c2dafc3736e169b49e33" },
"noice.nvim": { "branch": "main", "commit": "d8a1f3056ad713b5d471048f8d029264828e22c0" },
"nui.nvim": { "branch": "main", "commit": "d147222a1300901656f3ebd5b95f91732785a329" },
"null-ls.nvim": { "branch": "main", "commit": "689cdd78f70af20a37b5309ebc287ac645ae4f76" },
"nvim-cmp": { "branch": "main", "commit": "7a3b1e76f74934b12fda82158237c6ad8bfd3d40" },
"no-neck-pain.nvim": { "branch": "main", "commit": "1e46896d9096a878355cc5163624f4ae9217c5d6" },
"noice.nvim": { "branch": "main", "commit": "c22651651da01239fc4afac4cdb7261797d5f02e" },
"nui.nvim": { "branch": "main", "commit": "0dc148c6ec06577fcf06cbab3b7dac96d48ba6be" },
"null-ls.nvim": { "branch": "main", "commit": "456cd2754c56c991c5e4df60a807d054c1bc7148" },
"nvim-cmp": { "branch": "main", "commit": "feed47fd1da7a1bad2c7dca456ea19c8a5a9823a" },
"nvim-colorizer.lua": { "branch": "master", "commit": "36c610a9717cc9ec426a07c8e6bf3b3abcb139d6" },
"nvim-dap": { "branch": "master", "commit": "72684a4d70f0ecd45efe5ea76e9510e0b2e4d600" },
"nvim-dap": { "branch": "master", "commit": "c1bfcd89ef440a44d02ade7e71befb1e5aa358ca" },
"nvim-dap-ui": { "branch": "master", "commit": "bdb94e3853d11b5ce98ec182e5a3719d5c0ef6fd" },
"nvim-dap-vscode-js": { "branch": "main", "commit": "e7c05495934a658c8aa10afd995dacd796f76091" },
"nvim-lspconfig": { "branch": "master", "commit": "62856b20751b748841b0f3ec5a10b1e2f6a6dbc9" },
"nvim-notify": { "branch": "master", "commit": "9c987081390753b625e2d94e749e80e9b4a3e082" },
"nvim-dap-vscode-js": { "branch": "main", "commit": "baff224af20c6632861a59aa742c9740c68030de" },
"nvim-lspconfig": { "branch": "master", "commit": "56f4c8cdcdffca8521d3415cba7894d2f9f11dfe" },
"nvim-notify": { "branch": "master", "commit": "281e4d793c550c866bea3fb85d39de1f0188fb50" },
"nvim-recorder": { "branch": "main", "commit": "89c1fb1139fac0a4b42faf54beaf363be104550b" },
"nvim-scrollbar": { "branch": "main", "commit": "75210c554e935740448cfb532d8a671ae544bb1b" },
"nvim-toggleterm.lua": { "branch": "main", "commit": "1f47ea9cda973af3f1742a71841f3914f5b1469f" },
"nvim-treesitter": { "branch": "master", "commit": "8d2f9903f11542c3363353a65a8e08adfcca9d29" },
"nvim-toggleterm.lua": { "branch": "main", "commit": "31d38d11390bcd35a568fcc65a79b7d6ec89de62" },
"nvim-treesitter": { "branch": "master", "commit": "5a87bc98dabd0d38152a6fa774005f7ecbd40f1b" },
"nvim-treesitter-textobjects": { "branch": "master", "commit": "4b30081d2736e09f90c890a8a7adfe4df36f5b36" },
"nvim-ts-autotag": { "branch": "main", "commit": "fdefe46c6807441460f11f11a167a2baf8e4534b" },
"nvim-ts-context-commentstring": { "branch": "main", "commit": "a0f89563ba36b3bacd62cf967b46beb4c2c29e52" },
"nvim-ufo": { "branch": "main", "commit": "b70c9ef0f8e2673a11387a39185ff249e00df19f" },
"nvim-web-devicons": { "branch": "master", "commit": "4709a504d2cd2680fb511675e64ef2790d491d36" },
"persisted.nvim": { "branch": "main", "commit": "4d761446a43977aeab0a0744da3843ddfd6a357c" },
"nvim-ts-context-commentstring": { "branch": "main", "commit": "729d83ecb990dc2b30272833c213cc6d49ed5214" },
"nvim-ufo": { "branch": "main", "commit": "9e829d5cfa3de6a2ff561d86399772b0339ae49d" },
"nvim-web-devicons": { "branch": "master", "commit": "c3c1dc4e36969370ff589b7025df8ec2e5c881a2" },
"persisted.nvim": { "branch": "main", "commit": "88f27dcab289b338eed5c3c8119481d9c9e7428f" },
"plenary.nvim": { "branch": "master", "commit": "253d34830709d690f013daf2853a9d21ad7accab" },
"popup.nvim": { "branch": "master", "commit": "b7404d35d5d3548a82149238289fa71f7f6de4ac" },
"promise-async": { "branch": "main", "commit": "7fa127fa80e7d4d447e0e2c78e99af4355f4247b" },
@ -61,13 +60,13 @@
"sniprun": { "branch": "master", "commit": "6511fd71e751ed80ea374ef096ec5187682241cd" },
"symbols-outline.nvim": { "branch": "master", "commit": "512791925d57a61c545bc303356e8a8f7869763c" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "580b6c48651cabb63455e97d7e131ed557b8c7e2" },
"telescope.nvim": { "branch": "master", "commit": "a486ac3e8fb2198f3636da1927ed57a28836fbd8" },
"telescope.nvim": { "branch": "master", "commit": "a3f17d3baf70df58b9d3544ea30abe52a7a832c2" },
"todo-comments.nvim": { "branch": "main", "commit": "74c7d28cb50b0713c881ef69bcb6cdd77d8907d1" },
"translate.nvim": { "branch": "main", "commit": "7b2fd50c21ecfe536d572d62dcd3fa83acad3743" },
"trouble.nvim": { "branch": "main", "commit": "3b754285635a66a93aeb15fa71a23417d8997217" },
"undotree": { "branch": "master", "commit": "b6fdb95db53b7ceb23ddfe8a8211a3135d98eef0" },
"trouble.nvim": { "branch": "main", "commit": "67337644e38144b444d026b0df2dc5fa0038930f" },
"undotree": { "branch": "master", "commit": "485f01efde4e22cb1ce547b9e8c9238f36566f21" },
"vim-dadbod": { "branch": "master", "commit": "389a2b0120f82b13d51ff7c07f5c13f9bc9f412f" },
"vim-dadbod-completion": { "branch": "master", "commit": "e71eb6140556c5ced80de6299a1fdfe22bd3c1b1" },
"vim-dadbod-ui": { "branch": "master", "commit": "caf45f54dad6150970331ac115e531524e418c7c" },
"which-key.nvim": { "branch": "main", "commit": "5224c261825263f46f6771f1b644cae33cd06995" }
"which-key.nvim": { "branch": "main", "commit": "fb027738340502b556c3f43051f113bcaa7e8e63" }
}

View File

@ -47,12 +47,36 @@ local debugJSON = s("pcs", {
t("null, 2)}</code></pre>"),
})
local function simple_restore(args, _)
return sn(nil, { i(1, args[1]) })
end
ls.add_snippets("svelte", {
s("slt", {
t({ '<script lang="ts">', "" }),
i(0),
t({ "", "</script>" }),
}),
s("sch", {
t({
'<script lang="ts">',
' import type { Hst } from "@histoire/plugin-svelte";',
' export let Hst: Hst;',
''
}),
t(" import "), i(1, "Component"), t(" from './"), d(2, simple_restore, 1), t({ ".svelte';", "" }),
t({
"</script>",
"",
"",
"<Hst.Story>",
""
}),
t({ " <" }),
d(3, simple_restore, 1),
t({ " />", "" }),
t({ ' <svelte:fragment slot="controls">', " </svelte:fragment>", "</Hst.Story>" }),
}),
s("sc", {
t({ '<script context="module" lang="ts">', "" }),
i(0),
@ -61,6 +85,7 @@ ls.add_snippets("svelte", {
debugJSON,
})
ls.add_snippets("typescriptreact", {
debugJSON,
})

View File

@ -3,7 +3,7 @@ return {
name = "catppuccin",
lazy = false,
opts = {
-- transparent_background = true,
transparent_background = true,
flavour = "mocha", -- latte, frappe, macchiato, mocha
term_colors = true,
compile = {

View File

@ -1,49 +1,320 @@
local wezterm = require("wezterm")
local padding = 30
local function scheme_for_appearance(appearance)
if appearance:find("Dark") then
return "3024 Night"
else
return "Catppuccin Latte"
end
end
local wsl_domains = wezterm.default_wsl_domains()
-- Always use zsh in my WSL. but really: I recommend running `chsh` inside WSL to make it the default!
for _, dom in ipairs(wsl_domains) do
dom.default_cwd = "/home/max"
print(dom.name)
end
return {
font = wezterm.font_with_fallback {
"FiraCodeNerdFont",
"Noto Color Emoji"
local colors = {
rosewater = "#F4DBD6",
flamingo = "#F0C6C6",
pink = "#F5BDE6",
mauve = "#C6A0F6",
red = "#ED8798",
maroon = "#EE99A0",
peach = "#F5A97F",
yellow = "#EED49F",
green = "#A6DA95",
teal = "#8BD5CA",
sky = "#91D7E3",
sapphire = "#7DC4E4",
blue = "#8AADF4",
lavender = "#B7BDF8",
text = "#CAD3F5",
subtext1 = "white",
subtext0 = "#A5ADCB",
overlay2 = "#939AB7",
overlay1 = "#8087A2",
overlay0 = "#6E738D",
surface2 = "#5B6078",
surface1 = "#494D64",
surface0 = "#363A4F",
base = "#020202",
mantle = "#1E2030",
crust = "#000000",
}
local function get_process_name(tab)
local process_name = tab.active_pane.user_vars.PROG
if process_name == nil then
process_name = string.gsub(tab.active_pane.foreground_process_name, "(.*[/\\])(.*)", "%2")
end
if process_name == "wslhost.exe" then
local pane = tab.active_pane
process_name = pane.title
end
if process_name == "" then
process_name = "zsh"
end
return process_name
end
local function get_process(tab)
local process_icons = {
["docker"] = {
{ Foreground = { Color = colors.blue } },
{ Text = wezterm.nerdfonts.linux_docker },
},
wsl_domains = wsl_domains,
font_size = 13,
-- You can specify some parameters to influence the font selection;
-- for example, this selects a Bold, Italic font variant.
-- color_scheme = "Batman",
use_fancy_tab_bar = false,
hide_tab_bar_if_only_one_tab = true,
alternate_buffer_wheel_scroll_speed = 1,
color_scheme = scheme_for_appearance(wezterm.gui.get_appearance()),
window_close_confirmation = "AlwaysPrompt",
keys = {
{
key = 'U',
mods = 'CMD|SHIFT',
action = wezterm.action.Nop,
["docker-compose"] = {
{ Foreground = { Color = colors.blue } },
{ Text = wezterm.nerdfonts.linux_docker },
},
["nvim"] = {
{ Foreground = { Color = colors.green } },
{ Text = wezterm.nerdfonts.custom_vim },
},
["v"] = {
{ Foreground = { Color = colors.green } },
{ Text = wezterm.nerdfonts.custom_vim },
},
["vim"] = {
{ Foreground = { Color = colors.green } },
{ Text = wezterm.nerdfonts.dev_vim },
},
["node"] = {
{ Foreground = { Color = colors.green } },
{ Text = wezterm.nerdfonts.mdi_hexagon },
},
["zsh"] = {
{ Foreground = { Color = colors.peach } },
{ Text = wezterm.nerdfonts.dev_terminal },
},
["bash"] = {
{ Foreground = { Color = colors.subtext0 } },
{ Text = wezterm.nerdfonts.cod_terminal_bash },
},
["htop"] = {
{ Foreground = { Color = colors.yellow } },
{ Text = wezterm.nerdfonts.mdi_chart_donut_variant },
},
["cargo"] = {
{ Foreground = { Color = colors.peach } },
{ Text = wezterm.nerdfonts.dev_rust },
},
["go"] = {
{ Foreground = { Color = colors.sapphire } },
{ Text = wezterm.nerdfonts.mdi_language_go },
},
["lazydocker"] = {
{ Foreground = { Color = colors.blue } },
{ Text = wezterm.nerdfonts.linux_docker },
},
["git"] = {
{ Foreground = { Color = colors.peach } },
{ Text = wezterm.nerdfonts.dev_git },
},
["lazygit"] = {
{ Foreground = { Color = colors.peach } },
{ Text = wezterm.nerdfonts.dev_git },
},
["lua"] = {
{ Foreground = { Color = colors.blue } },
{ Text = wezterm.nerdfonts.seti_lua },
},
["wget"] = {
{ Foreground = { Color = colors.yellow } },
{ Text = wezterm.nerdfonts.mdi_arrow_down_box },
},
["curl"] = {
{ Foreground = { Color = colors.yellow } },
{ Text = wezterm.nerdfonts.mdi_flattr },
},
["gh"] = {
{ Foreground = { Color = colors.mauve } },
{ Text = wezterm.nerdfonts.dev_github_badge },
},
}
local process_name = get_process_name(tab)
return wezterm.format(
process_icons[process_name]
or { { Foreground = { Color = colors.sky } }, { Text = string.format("%s", process_name) } }
)
end
local function get_current_working_dir(tab)
local current_dir = tab.active_pane.current_working_dir
local HOME_DIR = string.format("file://%s", os.getenv("HOME"))
return current_dir == HOME_DIR and "  ~"
or string.format(" %s", string.gsub(current_dir, "(.*[/\\])(.*)", "%2"))
end
wezterm.on("format-tab-title", function(tab)
return wezterm.format({
{ Attribute = { Intensity = "Half" } },
{ Text = tab.is_active and " [" or " " },
{ Text = get_process(tab) },
{ Text = " " },
{ Text = get_current_working_dir(tab) },
{ Text = tab.is_active and "] " or " " },
{ Foreground = { Color = colors.base } },
})
end)
wezterm.on("update-status", function(window)
window:set_right_status(wezterm.format({
{ Attribute = { Intensity = "Bold" } },
{ Text = wezterm.strftime("%H:%M ") },
}))
end)
return {
font = wezterm.font_with_fallback({
"Liga SFMono Nerd Font",
"Apple Color Emoji",
}),
wsl_domains = wsl_domains,
default_domain = "WSL:Debian",
font_size = 12.1,
max_fps = 120,
enable_wayland = false,
pane_focus_follows_mouse = false,
warn_about_missing_glyphs = false,
show_update_window = true,
check_for_updates = true,
line_height = 1.30,
window_decorations = "RESIZE",
window_close_confirmation = "AlwaysPrompt",
audible_bell = "Disabled",
window_padding = {
left = 10,
right = 10,
top = 10,
bottom = 10,
},
inactive_pane_hsb = {
saturation = 0.5,
brightness = 0.5,
},
enable_scroll_bar = false,
use_fancy_tab_bar = false,
show_new_tab_button_in_tab_bar = false,
window_background_opacity = 1.0,
tab_max_width = 50,
hide_tab_bar_if_only_one_tab = true,
disable_default_key_bindings = false,
colors = {
split = colors.surface0,
foreground = colors.text,
background = colors.base,
cursor_bg = colors.rosewater,
cursor_border = colors.rosewater,
cursor_fg = colors.base,
selection_bg = colors.surface2,
selection_fg = colors.text,
visual_bell = colors.surface0,
indexed = {
[16] = colors.peach,
[17] = colors.rosewater,
},
scrollbar_thumb = colors.surface2,
compose_cursor = colors.flamingo,
ansi = {
colors.surface1,
colors.red,
colors.green,
colors.yellow,
colors.blue,
colors.pink,
colors.teal,
colors.subtext0,
},
brights = {
colors.subtext0,
colors.red,
colors.green,
colors.yellow,
colors.blue,
colors.pink,
colors.teal,
colors.surface1,
},
tab_bar = {
background = colors.crust,
active_tab = {
bg_color = "none",
fg_color = colors.subtext1,
intensity = "Bold",
underline = "None",
italic = false,
strikethrough = false,
},
inactive_tab = {
bg_color = colors.crust,
fg_color = colors.surface2,
},
inactive_tab_hover = {
bg_color = colors.mantle,
fg_color = colors.subtext0,
},
new_tab = {
bg_color = colors.crust,
fg_color = colors.subtext0,
},
new_tab_hover = {
bg_color = colors.crust,
fg_color = colors.subtext0,
},
},
},
color_scheme = "3024 Night",
leader = { key = "a", mods = "CTRL" },
keys = {
-- Keybindings similar to tmux
{ key = "-", mods = "LEADER", action = wezterm.action { SplitVertical = { domain = "CurrentPaneDomain" } } },
{ key = "\\", mods = "LEADER", action = wezterm.action { SplitHorizontal = { domain = "CurrentPaneDomain" } } },
--
{ key = "z", mods = "LEADER", action = "TogglePaneZoomState" },
{ key = "c", mods = "LEADER", action = wezterm.action { SpawnTab = "CurrentPaneDomain" } },
--
{ key = "n", mods = "LEADER", action = wezterm.action.ActivateTabRelative(1) },
{ key = "p", mods = "LEADER", action = wezterm.action.ActivateTabRelative(-1) },
--
{ key = "h", mods = "LEADER", action = wezterm.action({ ActivatePaneDirection = "Left" }) },
{ key = "l", mods = "LEADER", action = wezterm.action({ ActivatePaneDirection = "Right" }) },
{ key = "k", mods = "LEADER", action = wezterm.action({ ActivatePaneDirection = "Up" }) },
{ key = "j", mods = "LEADER", action = wezterm.action({ ActivatePaneDirection = "Down" }) },
--
{ key = "H", mods = "SHIFT|ALT", action = wezterm.action({ AdjustPaneSize = { "Left", 2 } }) },
{ key = "L", mods = "SHIFT|ALT", action = wezterm.action({ AdjustPaneSize = { "Right", 2 } }) },
{ key = "J", mods = "SHIFT|ALT", action = wezterm.action({ AdjustPaneSize = { "Down", 2 } }) },
{ key = "K", mods = "SHIFT|ALT", action = wezterm.action({ AdjustPaneSize = { "Up", 2 } }) },
---
{ key = 'P', mods = 'CMD|SHIFT', action = wezterm.action.ActivateCommandPalette, },
{ key = 'U', mods = 'CMD|SHIFT', action = wezterm.action.Nop, },
{ key = 'F11', mods = '', action = wezterm.action.ToggleFullScreen, },
},
hyperlink_rules = {
{
regex = "\\b\\w+://[\\w.-]+:[0-9]{2,15}\\S*\\b",
format = "$0",
},
{
regex = "\\b\\w+://[\\w.-]+\\.[a-z]{2,15}\\S*\\b",
format = "$0",
},
{
regex = [[\b\w+@[\w-]+(\.[\w-]+)+\b]],
format = "mailto:$0",
},
{
regex = [[\bfile://\S*\b]],
format = "$0",
},
{
regex = [[\b\w+://(?:[\d]{1,3}\.){3}[\d]{1,3}\S*\b]],
format = "$0",
},
{
regex = [[\b[tT](\d+)\b]],
format = "https://example.com/tasks/?t=$1",
},
window_padding = {
left = padding,
right = padding,
top = padding,
bottom = padding,
},
}