trigger-lazygit.lua
1 local wezterm = require('wezterm') 2 3 local M = {} 4 5 local LAZY_BIN = '/opt/homebrew/bin/lazygit' 6 7 M.setup = function() 8 wezterm.on('trigger-lazygit', function(window, pane) 9 window:perform_action( 10 pane:split({ 11 direction = 'Right', 12 label = 'Open Lazygit', 13 args = { LAZY_BIN }, 14 size = 0.75, 15 }), 16 pane 17 ) 18 end) 19 end 20 21 return M