tmux+nvim smart splits upgrade

This commit is contained in:
Henrik Bakken
2026-10-08 21:27:10 +02:00
parent f19d8c4f15
commit 46c2c5f97e
2 changed files with 19 additions and 13 deletions
+8 -1
View File
@@ -1248,8 +1248,15 @@ end
local function makespec_smartsplits()
return {
"mrjones2014/smart-splits.nvim",
"smart-splits-nvim/smart-splits.nvim",
lazy = false,
opts = {
mux = { backend = "smart-splits-backend-tmux" },
move = { at_edge = "wrap" },
},
dependencies = {
{ "smart-splits-nvim/backend-tmux", main = "smart-splits-backend-tmux" },
},
-- stylua: ignore
keys = {
{ "<M-h>", function() require("smart-splits").move_cursor_left() end, desc = "Go to Left Window" },
+11 -12
View File
@@ -195,21 +195,20 @@ set -g @plugin 'tmux-plugins/tmux-sensible'
### PANE CONTROL ###
######################
set -g @plugin 'mrjones2014/smart-splits.nvim'
set -g @plugin 'smart-splits-nvim/backend-tmux'
# Optional configurations with their default values if omitted:
set -g @smart-splits_at_edge 'wrap'
set -g @smart-splits_resize_step_size '3'
set -g @smart-splits_no_wrap '' # to disable wrapping. (any value disables wrapping)
set -g @smart-splits_move_left_key 'M-h'
set -g @smart-splits_move_down_key 'M-j'
set -g @smart-splits_move_up_key 'M-k'
set -g @smart-splits_move_right_key 'M-l'
set -g @smart-splits_move_left_key 'M-h' # key-mapping for navigation.
set -g @smart-splits_move_down_key 'M-j' # --"--
set -g @smart-splits_move_up_key 'M-k' # --"--
set -g @smart-splits_move_right_key 'M-l' # --"--
set -g @smart-splits_resize_left_key 'C-h' # key-mapping for resizing.
set -g @smart-splits_resize_down_key 'C-j' # --"--
set -g @smart-splits_resize_up_key 'C-k' # --"--
set -g @smart-splits_resize_right_key 'C-l' # --"--
set -g @smart-splits_resize_left_key 'C-h'
set -g @smart-splits_resize_down_key 'C-j'
set -g @smart-splits_resize_up_key 'C-k'
set -g @smart-splits_resize_right_key 'C-l'
set -g @smart-splits_resize_step_size '3' # change the step-size for resizing.