From 3d2cf213ec186f707d60049122281e688b8160ee Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Thu, 1 Feb 2024 15:38:23 -0600 Subject: feat: update nvim, add tmux-sessionizer --- .config/nvim | 2 +- .config/shell/profile | 3 +++ .config/tms/default-config.toml | 3 +++ .config/tmux/tmux.conf | 10 +++++++++- 4 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 .config/tms/default-config.toml diff --git a/.config/nvim b/.config/nvim index d9e3da2..130eede 160000 --- a/.config/nvim +++ b/.config/nvim @@ -1 +1 @@ -Subproject commit d9e3da291a1748d9b1c8efebcd6d12cbf092c3c6 +Subproject commit 130eede87d4dee6aee31157417f90f7bacb1525f diff --git a/.config/shell/profile b/.config/shell/profile index 1a2c1fe..56f89d9 100644 --- a/.config/shell/profile +++ b/.config/shell/profile @@ -25,6 +25,9 @@ export GOBIN="$HOME/.local/bin/go" export GOPATH="$XDG_DATA_HOME/go" export GOMODCACHE="$XDG_CACHE_HOME/go/mod" export PATH="$PATH:$GOBIN:$GOPATH/bin" +# Rust +export CARGO_HOME="$XDG_DATA_HOME/cargo" +export PATH="$PATH:$CARGO_HOME/bin" # bash export BASH_COMPLETIONS="$XDG_DATA_HOME/bash-completion/completions" # GPG diff --git a/.config/tms/default-config.toml b/.config/tms/default-config.toml new file mode 100644 index 0000000..5630a23 --- /dev/null +++ b/.config/tms/default-config.toml @@ -0,0 +1,3 @@ +[[search_dirs]] +path = '/home/david/go' +depth = 1 diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 3d0661c..6648bb3 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -9,16 +9,24 @@ set -sg escape-time 50 set -g default-terminal "screen-256color" set -as terminal-features ",xterm-256color:RGB" + ### tpm config from here onwards # general set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' +# use tmux-sessionizer instead # resurrect -set -g @plugin 'tmux-plugins/tmux-resurrect' +# set -g @plugin 'tmux-plugins/tmux-resurrect' # powerline set -g @plugin 'erikw/tmux-powerline' +### others +# https://github.com/jrmoulton/tmux-sessionizer +bind C-o display-popup -E "tms" +bind C-j display-popup -E "tms switch" +bind C-w display-popup -E "tms windows" + ### initialize tpm (keep this line at the very bottom of tmux.conf) run '/usr/share/tmux-plugin-manager/tpm' -- cgit v1.2.3-70-g09d2