Explore the source / dotfiles

Inside dotfiles.

Shell, terminal, backup, and the configuration that joins them. Browse the current public files here, or visit the dotfiles repository on GitHub.

dotfiles / main

home/.config/wezterm/lua/plugins/smart-splits.lua

View on GitHub
local M = {}

function M.setup(config, wezterm, act)
   local smart_splits = 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|SHIFT",
         resize = "ALT",
      },
   })

   table.insert(config.keys, {
      key = "w",
      mods = "CMD|SHIFT",
      action = act.CloseCurrentPane({ confirm = false }),
   })
end

return M