61 lines
1.5 KiB
Lua
61 lines
1.5 KiB
Lua
--
|
|
local wezterm = require 'wezterm'
|
|
|
|
local act = wezterm.action
|
|
local config = wezterm.config_builder()
|
|
|
|
config.check_for_updates = false
|
|
config.color_scheme = 'Tango (terminal.sexy)'
|
|
config.enable_csi_u_key_encoding = true
|
|
config.font = wezterm.font_with_fallback({'Cousine', 'Noto Color Emoji', 'Noto Sans CJK JP'})
|
|
config.font_size = 18.0
|
|
config.hide_mouse_cursor_when_typing = false
|
|
config.initial_cols = 132
|
|
config.initial_rows = 43
|
|
config.line_height = 1.0
|
|
config.keys = {
|
|
{
|
|
key = 'Insert',
|
|
mods = 'SHIFT',
|
|
action = act.PasteFrom 'Clipboard',
|
|
},
|
|
}
|
|
config.mouse_bindings = {
|
|
{
|
|
event = {Up = {streak = 1, button = 'Left'}},
|
|
mods = 'NONE',
|
|
action = act.CompleteSelection 'ClipboardAndPrimarySelection',
|
|
},
|
|
{
|
|
event = {Down = {streak = 1, button = 'Middle'}},
|
|
mods = 'NONE',
|
|
action = act.Nop,
|
|
},
|
|
{
|
|
event = {Up = {streak = 1, button = 'Middle'}},
|
|
mods = 'NONE',
|
|
action = act.OpenLinkAtMouseCursor,
|
|
},
|
|
{
|
|
event = {Up = {streak = 1, button = 'Right'}},
|
|
mods = 'NONE',
|
|
action = act.PasteFrom 'Clipboard',
|
|
},
|
|
}
|
|
config.selection_word_boundary = " \t\n{}[]()<>\"'`"
|
|
config.window_padding = {
|
|
bottom = 0,
|
|
left = 0,
|
|
right = 0,
|
|
top = 0,
|
|
}
|
|
|
|
wezterm.on('format-tab-title', function(tab, tabs, panes, config, hover, max_width)
|
|
return 'Tab ' .. tab.tab_index
|
|
end)
|
|
wezterm.on('format-window-title', function(tab, pane, tabes, panes, config)
|
|
return 'WezTerm ' .. wezterm.version
|
|
end)
|
|
|
|
return config
|