summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nvim/.config/nvim/lazy-lock.json3
-rw-r--r--nvim/.config/nvim/lua/plugins/vim-obsession.lua4
-rw-r--r--tmux/.config/tmux/tmux.conf13
3 files changed, 16 insertions, 4 deletions
diff --git a/nvim/.config/nvim/lazy-lock.json b/nvim/.config/nvim/lazy-lock.json
index 0778057..f6b2e83 100644
--- a/nvim/.config/nvim/lazy-lock.json
+++ b/nvim/.config/nvim/lazy-lock.json
@@ -1,4 +1,5 @@
{
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
- "nord.nvim": { "branch": "master", "commit": "80c1e5321505aeb22b7a9f23eb82f1e193c12470" }
+ "nord.nvim": { "branch": "master", "commit": "80c1e5321505aeb22b7a9f23eb82f1e193c12470" },
+ "vim-obsession": { "branch": "master", "commit": "ed9dfc7c2cc917ace8b24f4f9f80a91e05614b63" }
}
diff --git a/nvim/.config/nvim/lua/plugins/vim-obsession.lua b/nvim/.config/nvim/lua/plugins/vim-obsession.lua
new file mode 100644
index 0000000..fed1d81
--- /dev/null
+++ b/nvim/.config/nvim/lua/plugins/vim-obsession.lua
@@ -0,0 +1,4 @@
+return {
+ 'tpope/vim-obsession',
+ lazy = false,
+}
diff --git a/tmux/.config/tmux/tmux.conf b/tmux/.config/tmux/tmux.conf
index 5372817..f99ed95 100644
--- a/tmux/.config/tmux/tmux.conf
+++ b/tmux/.config/tmux/tmux.conf
@@ -59,11 +59,16 @@ bind SPACE set-option status
# Alphabetical session list.
bind s choose-tree -s -O name
+# Enable focus events, which are needed by Neovim for 'autoread'.
+set -g focus-events on
+
# Theme colors based on Nord.
black_bright="#4c566a"
gray_light="#D8DEE9"
gray_medium="#ABB2BF"
gray_dark="#3B4252"
+nord_cyan="#88c0d0"
+nord_black="#2e3440"
# Make room for session names.
set -g status-left-length 100
@@ -84,13 +89,15 @@ set -g pane-border-style "fg=${gray_dark}"
set -g pane-active-border-style "fg=${gray_medium}"
# Style the choose-tree / session picker
-set -g mode-style "fg=#2e3440,bg=#88c0d0" # Dark text on Frost background
+set -g mode-style "fg=#2e3440,bg=${nord_cyan}" # Dark text on Frost background
# Style the command line / prompts (Nord 0 background, Nord 8 foreground)
-set -g message-style "fg=#88c0d0,bg=#2e3440,bold"
+set -g message-style "fg=#88c0d0,bg=${nord_black},bold"
# Style the command line when in command mode (the ':' prompt)
-set -g message-command-style "fg=#88c0d0,bg=#2e3440"
+set -g message-command-style "fg=${nord_cyan},bg=${nord_black}"
+# Informs tmux-resurrect to use neovim sessions when restoring.
+set -g @resurrect-strategy-nvim 'session'
# Plugins.
run-shell ~/.config/tmux/plugins/tmux-resurrect/resurrect.tmux
run-shell ~/.config/tmux/plugins/tmux-continuum/continuum.tmux