tmux+nvim smart splits upgrade
This commit is contained in:
@@ -1248,8 +1248,15 @@ end
|
|||||||
|
|
||||||
local function makespec_smartsplits()
|
local function makespec_smartsplits()
|
||||||
return {
|
return {
|
||||||
"mrjones2014/smart-splits.nvim",
|
"smart-splits-nvim/smart-splits.nvim",
|
||||||
lazy = false,
|
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
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
{ "<M-h>", function() require("smart-splits").move_cursor_left() end, desc = "Go to Left Window" },
|
{ "<M-h>", function() require("smart-splits").move_cursor_left() end, desc = "Go to Left Window" },
|
||||||
|
|||||||
+11
-12
@@ -195,21 +195,20 @@ set -g @plugin 'tmux-plugins/tmux-sensible'
|
|||||||
### PANE CONTROL ###
|
### 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_resize_left_key 'C-h'
|
||||||
set -g @smart-splits_move_down_key 'M-j' # --"--
|
set -g @smart-splits_resize_down_key 'C-j'
|
||||||
set -g @smart-splits_move_up_key 'M-k' # --"--
|
set -g @smart-splits_resize_up_key 'C-k'
|
||||||
set -g @smart-splits_move_right_key 'M-l' # --"--
|
set -g @smart-splits_resize_right_key 'C-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_step_size '3' # change the step-size for resizing.
|
set -g @smart-splits_resize_step_size '3' # change the step-size for resizing.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user