Skip to content

Commit

Permalink
refactor(tmux:plugin): move loading plugins to tmux.conf
Browse files Browse the repository at this point in the history
  ## what
  - move loading plugins to `tmux.conf`
    - move loading plugins from `./tools/tmux/plugins.tmux.conf` to `./tools/tmux/tmux.conf`

  ## how

  ## why
  -  since im using config from https://github.com/gpakosz/.tmux , it
     doesn't seem to load plugins if sourcing from another file
     - check gpakosz/.tmux#671

  ## where
  - ./tools/tmux/tmux.conf

  ## usage
  • Loading branch information
Clumsy-Coder committed Sep 27, 2023
1 parent 188d8b2 commit bcd6a53
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion tools/tmux/tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ set-option -ga terminal-overrides ",xterm-256color:Tc"
# import settings from files

source-file ~/dotfiles/tools/tmux/hotkeys.tmux.conf
source-file ~/dotfiles/tools/tmux/plugins.tmux.conf
# source-file ~/dotfiles/tools/tmux/plugins.tmux.conf
source-file ~/dotfiles/tools/tmux/theme.tmux.conf

##################################################################################################
Expand All @@ -41,3 +41,25 @@ set-environment -g TMUX_PLUGIN_MANAGER_PATH "$TMUX_PLUGIN_CACHE_PATH"
# # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
# run -b '$TMUX_PLUGIN_CACHE_PATH/tpm/tpm'

#################################################################################################
# loading plugins
# this is to work with oh-my-tmux from https://github.com/gpakosz/.tmux
#
# doesn't seem to work if sourcing the file plugins.tmux.conf
# check https://github.com/gpakosz/.tmux/issues/671

# sensible tmux config
set -g @plugin 'tmux-plugins/tmux-sensible'

# copy text in tmux
set -g @plugin 'tmux-plugins/tmux-yank'

# mouse support
set -g @plugin 'nhdaly/tmux-better-mouse-mode'

# popup menu to help manage tmux
# <prefix> + \ open popup
# <prefix> + < displays some windows handling options
# <prefix> + > displays some pane handling options
set -g @plugin 'jaclu/tmux-menus'

0 comments on commit bcd6a53

Please sign in to comment.