diff --git a/term/.config/nvim/lua/plugins/vim-tmux-navigator.lua b/term/.config/nvim/lua/plugins/vim-tmux-navigator.lua deleted file mode 100644 index 51d3d97..0000000 --- a/term/.config/nvim/lua/plugins/vim-tmux-navigator.lua +++ /dev/null @@ -1,15 +0,0 @@ -return { - "christoomey/vim-tmux-navigator", - cmd = { - "TmuxNavigateLeft", - "TmuxNavigateDown", - "TmuxNavigateUp", - "TmuxNavigateRight", - }, - keys = { - { "", "TmuxNavigateLeft", desc = "Navigate left (tmux/nvim)" }, - { "", "TmuxNavigateDown", desc = "Navigate down (tmux/nvim)" }, - { "", "TmuxNavigateUp", desc = "Navigate up (tmux/nvim)" }, - { "", "TmuxNavigateRight", desc = "Navigate right (tmux/nvim)" }, - }, -} diff --git a/term/.config/tmux/tmux.conf b/term/.config/tmux/tmux.conf index aa218cb..a794abf 100644 --- a/term/.config/tmux/tmux.conf +++ b/term/.config/tmux/tmux.conf @@ -1,5 +1,6 @@ # ── General ─────────────────────────────────────────────────────────────────── + set -g default-terminal "tmux-256color" set -ag terminal-overrides ",xterm-256color:RGB" @@ -14,9 +15,21 @@ set -g focus-events on # pass focus events through (needed by Neovim) # ── Keybinds ────────────────────────────────────────────────────────────────── +# Leader key +unbind C-b +set -g prefix C-x +bind C-x send-prefix + +# Reload config unbind r bind r source-file ~/.config/tmux/tmux.conf \; display "Config reloaded" +# Pane navigation +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R + # ── Plugins ─────────────────────────────────────────────────────────────────── @@ -27,9 +40,6 @@ if "test ! -d ~/.config/tmux/plugins/tpm" \ set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' -# Seamless navigation between tmux panes and Neovim splits -set -g @plugin 'christoomey/vim-tmux-navigator' - # Catppuccin theme set -g @plugin 'catppuccin/tmux' set -g @catppuccin_flavor "mocha"