switch to wezterm and fix breaking change

This commit is contained in:
Ben Kyd
2023-04-02 22:56:02 +01:00
parent 471fabf764
commit d80a272bbb
3 changed files with 37 additions and 5 deletions

View File

@@ -44,10 +44,6 @@ require('smart-splits').setup({
'BufEnter',
'WinEnter',
},
-- enable or disable the tmux integration
tmux_integration = true,
-- disable tmux navigation if current tmux pane is zoomed
disable_tmux_nav_when_zoomed = true,
})
vim.keymap.set('n', '<A-Left>', require('smart-splits').resize_left)

View File

@@ -0,0 +1,36 @@
local wezterm = require 'wezterm'
local config = {}
if wezterm.config_builder then
config = wezterm.config_builder()
end
config.hide_tab_bar_if_only_one_tab = true
config.font = wezterm.font("DejaVu Sans Mono")
config.font_size = 10.0
config.adjust_window_size_when_changing_font_size = false
config.color_scheme = 'Catppuccin Macchiato'
config.window_background_opacity = 0.85
config.window_padding = {
left = '0.5cell',
right = '0.5cell',
top = '0.2cell',
bottom = 0,
}
config.keys = {
-- Turn off the default CMD-m Hide action, allowing CMD-m to
-- be potentially recognized and handled by the tab
{
key = 'Enter',
mods = 'ALT',
action = wezterm.action.DisableDefaultAssignment,
},
}
return config

View File

@@ -32,7 +32,7 @@ for_window [class="^.*"] border pixel 1
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec kitty
bindsym $mod+Return exec wezterm
# kill focused window
bindsym $mod+Shift+q kill