From f8d471a07736b899dbffe0f4339e4f97748fd5e6 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Fri, 17 Apr 2026 10:53:38 +0100 Subject: refactor: replace tmux.nvim with smart-splits.nvim for zellij - Swap aserowy/tmux.nvim for mrjones2014/smart-splits.nvim in init.lua - Configure Ctrl h/j/k/l navigation keymaps (same keys as before) - Add vim-zellij-navigator WASM plugin keybindings to zellij config - Remove tmux treesitter parser (no longer needed) smart-splits.nvim auto-detects zellij as the multiplexer and provides seamless split/pane navigation across neovim and zellij boundaries. --- home/.config/zellij/config.kdl | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'home/.config/zellij') diff --git a/home/.config/zellij/config.kdl b/home/.config/zellij/config.kdl index 3d7f976..f3d3aa7 100644 --- a/home/.config/zellij/config.kdl +++ b/home/.config/zellij/config.kdl @@ -20,3 +20,34 @@ copy_command "wl-copy" // Auto-attach to existing session with the same name instead of erroring attach_to_session true + +// Seamless navigation between neovim splits and zellij panes (Ctrl h/j/k/l). +// Requires smart-splits.nvim on the neovim side. +keybinds { + shared_except "locked" { + bind "Ctrl h" { + MessagePlugin "https://github.com/hiasr/vim-zellij-navigator/releases/download/0.2.1/vim-zellij-navigator.wasm" { + name "move_focus"; + payload "left"; + }; + } + bind "Ctrl j" { + MessagePlugin "https://github.com/hiasr/vim-zellij-navigator/releases/download/0.2.1/vim-zellij-navigator.wasm" { + name "move_focus"; + payload "down"; + }; + } + bind "Ctrl k" { + MessagePlugin "https://github.com/hiasr/vim-zellij-navigator/releases/download/0.2.1/vim-zellij-navigator.wasm" { + name "move_focus"; + payload "up"; + }; + } + bind "Ctrl l" { + MessagePlugin "https://github.com/hiasr/vim-zellij-navigator/releases/download/0.2.1/vim-zellij-navigator.wasm" { + name "move_focus"; + payload "right"; + }; + } + } +} -- cgit v1.2.3-70-g09d2