]> git.rmz.io Git - dotfiles.git/blob - wezterm/wezterm.lua
nvim: lazydev loads lazy.nvim on LazySpec
[dotfiles.git] / wezterm / wezterm.lua
1 ---@type WezTerm
2 local wezterm = require('wezterm')
3 ---@type _.wezterm.ConfigBuilder
4 local config = {}
5
6 -- color
7 config.color_scheme = 'nord'
8 -- font
9 config.font = wezterm.font('Fira Code')
10 config.font_size = 11
11 config.harfbuzz_features = { 'ss03' }
12
13 config.adjust_window_size_when_changing_font_size = false
14
15 config.hide_tab_bar_if_only_one_tab = true
16 config.tab_bar_at_bottom = true
17
18 config.quick_select_alphabet = "aoeuisnthd"
19
20 config.keys = {
21 {
22 key = 'F',
23 mods = 'CTRL',
24 action = wezterm.action.QuickSelectArgs {
25 label = 'open url',
26 patterns = {
27 'https?://\\S+',
28 },
29 action = wezterm.action_callback(function (win, pane)
30 local url = win:get_selection_text_for_pane(pane)
31 wezterm.log_info('opening: ' .. url)
32 wezterm.open_with(url, "rifle")
33 end),
34 },
35 },
36 {
37 key = 'Enter',
38 mods = 'ALT',
39 action = wezterm.action.DisableDefaultAssignment,
40 },
41 }
42
43 return config