pimp my tmux
This commit is contained in:
@@ -70,12 +70,6 @@ vim.keymap.set("n", "<leader>q", ":q<CR>", { desc = "Quit" })
|
||||
vim.keymap.set("n", "<C-n>", ":Neotree filesystem reveal left<CR>", { desc = "Toggle explorer" })
|
||||
vim.keymap.set("n", "<C-p>", ":Telescope find_files<CR>", { desc = "Find files" })
|
||||
|
||||
-- Better window navigation
|
||||
vim.keymap.set("n", "<C-h>", "<C-w>h", { desc = "Navigate left" })
|
||||
vim.keymap.set("n", "<C-j>", "<C-w>j", { desc = "Navigate down" })
|
||||
vim.keymap.set("n", "<C-k>", "<C-w>k", { desc = "Navigate up" })
|
||||
vim.keymap.set("n", "<C-l>", "<C-w>l", { desc = "Navigate right" })
|
||||
|
||||
-- Split windows
|
||||
vim.keymap.set("n", "<leader>sh", ":split<CR>", { desc = "Split window horizontally" })
|
||||
vim.keymap.set("n", "<leader>sv", ":vsplit<CR>", { desc = "Split window vertically" })
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
return {
|
||||
"christoomey/vim-tmux-navigator",
|
||||
cmd = {
|
||||
"TmuxNavigateLeft",
|
||||
"TmuxNavigateDown",
|
||||
"TmuxNavigateUp",
|
||||
"TmuxNavigateRight",
|
||||
},
|
||||
keys = {
|
||||
{ "<C-h>", "<cmd>TmuxNavigateLeft<cr>", desc = "Navigate left (tmux/nvim)" },
|
||||
{ "<C-j>", "<cmd>TmuxNavigateDown<cr>", desc = "Navigate down (tmux/nvim)" },
|
||||
{ "<C-k>", "<cmd>TmuxNavigateUp<cr>", desc = "Navigate up (tmux/nvim)" },
|
||||
{ "<C-l>", "<cmd>TmuxNavigateRight<cr>", desc = "Navigate right (tmux/nvim)" },
|
||||
},
|
||||
}
|
||||
Submodule
+1
Submodule term/.config/tmux/plugins/tmux added at 92b9ef41b9
Submodule
+1
Submodule term/.config/tmux/plugins/tmux-sensible added at 25cb91f42d
Submodule
+1
Submodule term/.config/tmux/plugins/tpm added at 99469c4a9b
+1
Submodule term/.config/tmux/plugins/vim-tmux-navigator added at e41c431a0c
@@ -0,0 +1,51 @@
|
||||
# ── General ───────────────────────────────────────────────────────────────────
|
||||
|
||||
set -g default-terminal "tmux-256color"
|
||||
set -ag terminal-overrides ",xterm-256color:RGB"
|
||||
|
||||
set -g mouse on # click to focus panes, drag borders to resize
|
||||
set -g base-index 1 # start window numbering at 1
|
||||
set -g pane-base-index 1 # start pane numbering at 1
|
||||
set -g renumber-windows on # re-number windows when one is closed
|
||||
set -g escape-time 0 # no delay for escape key (important for Neovim)
|
||||
set -g history-limit 10000
|
||||
set -g focus-events on # pass focus events through (needed by Neovim)
|
||||
|
||||
|
||||
# ── Keybinds ──────────────────────────────────────────────────────────────────
|
||||
|
||||
unbind r
|
||||
bind r source-file ~/.config/tmux/tmux.conf \; display "Config reloaded"
|
||||
|
||||
|
||||
# ── Plugins ───────────────────────────────────────────────────────────────────
|
||||
|
||||
# Auto-bootstrap TPM if not installed
|
||||
if "test ! -d ~/.tmux/plugins/tpm" \
|
||||
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
|
||||
|
||||
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"
|
||||
set -g @catppuccin_window_status_style "rounded"
|
||||
|
||||
|
||||
# ── Initialize TPM (must be last line before status bar) ──────────────────────
|
||||
|
||||
run '~/.tmux/plugins/tpm/tpm'
|
||||
|
||||
|
||||
# ── Status bar ────────────────────────────────────────────────────────────────
|
||||
# (must come after TPM run so catppuccin variables are available)
|
||||
|
||||
set -g status-position top
|
||||
set -g status-left-length 100
|
||||
set -g status-right-length 100
|
||||
set -g status-left "#{E:@catppuccin_status_session}"
|
||||
set -g status-right "#{E:@catppuccin_status_date_time}"
|
||||
Reference in New Issue
Block a user