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/nvim/lua/plugins/init.lua | 11 ++++++----- home/.config/nvim/lua/plugins/treesitter.lua | 1 - 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'home/.config/nvim/lua/plugins') diff --git a/home/.config/nvim/lua/plugins/init.lua b/home/.config/nvim/lua/plugins/init.lua index 8dce4cd..a0a6d49 100644 --- a/home/.config/nvim/lua/plugins/init.lua +++ b/home/.config/nvim/lua/plugins/init.lua @@ -1,8 +1,9 @@ -require("tmux").setup({ - resize = { - enable_default_keybindings = false, - }, -}) +-- Seamless navigation between neovim splits and zellij panes +require("smart-splits").setup({}) +vim.keymap.set("n", "", require("smart-splits").move_cursor_left, { desc = "Move to left split/pane" }) +vim.keymap.set("n", "", require("smart-splits").move_cursor_down, { desc = "Move to below split/pane" }) +vim.keymap.set("n", "", require("smart-splits").move_cursor_up, { desc = "Move to above split/pane" }) +vim.keymap.set("n", "", require("smart-splits").move_cursor_right, { desc = "Move to right split/pane" }) require("which-key").setup({ spec = { diff --git a/home/.config/nvim/lua/plugins/treesitter.lua b/home/.config/nvim/lua/plugins/treesitter.lua index 8355a07..8e72384 100644 --- a/home/.config/nvim/lua/plugins/treesitter.lua +++ b/home/.config/nvim/lua/plugins/treesitter.lua @@ -59,7 +59,6 @@ require("nvim-treesitter").install({ "strace", "sxhkdrc", "tablegen", - "tmux", "todotxt", "toml", "typescript", -- cgit v1.2.3-70-g09d2