diff --git a/CONFIG/nvim/init.lua b/CONFIG/nvim/init.lua index c809fcf..6894d64 100644 --- a/CONFIG/nvim/init.lua +++ b/CONFIG/nvim/init.lua @@ -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 = { { "", function() require("smart-splits").move_cursor_left() end, desc = "Go to Left Window" }, diff --git a/CONFIG/tmux/tmux.conf b/CONFIG/tmux/tmux.conf index 8fffc2e..d6c81f5 100644 --- a/CONFIG/tmux/tmux.conf +++ b/CONFIG/tmux/tmux.conf @@ -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.