From 09ec4cfe533c7a9bc97ce7e41cc787b444058387 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Fri, 14 Feb 2025 12:01:10 +0800 Subject: [PATCH] wezterm: add smart-splits integration --- wezterm/wezterm.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/wezterm/wezterm.lua b/wezterm/wezterm.lua index 8e3d9a2..a0658d8 100644 --- a/wezterm/wezterm.lua +++ b/wezterm/wezterm.lua @@ -1,10 +1,21 @@ local config = require("wezterm").config_builder() config:set_strict_mode(true) + require("config/events").apply_to_config(config) require("config/base").apply_to_config(config) require("config/keys").apply_to_config(config) require("config/appearance").apply_to_config(config) require("config/mux_server").apply_to_config(config) +local smart_splits = require("wezterm").plugin.require("https://github.com/mrjones2014/smart-splits.nvim") +smart_splits.apply_to_config(config, { + direction_keys = { 'h', 'j', 'k', 'l' }, + modifiers = { + move = 'CTRL', + resize = 'META', + }, + log_level = 'info', +}) + return config