From 18ed338e9356110446b32519db6d4018269ba378 Mon Sep 17 00:00:00 2001 From: Ray Andrew <4437323+rayandrew@users.noreply.github.com> Date: Mon, 7 Aug 2023 00:49:03 -0500 Subject: [PATCH] enable back tmux-navigator --- lazy-lock.json | 1 + lua/rayandrew/plugins.lua | 11 +++++++++++ lua/rayandrew/remap.lua | 24 ++++++++++++------------ 3 files changed, 24 insertions(+), 12 deletions(-) diff --git a/lazy-lock.json b/lazy-lock.json index b574532..282c51d 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -54,6 +54,7 @@ "vim-fugitive": { "branch": "master", "commit": "b3b838d690f315a503ec4af8c634bdff3b200aaf" }, "vim-illuminate": { "branch": "master", "commit": "5ed17582a8e97bf0a0c617c3cf762e98f87b9859" }, "vim-startuptime": { "branch": "master", "commit": "454b3de856b7bd298700de33d79774ca9b9e3875" }, + "vim-tmux-navigator": { "branch": "master", "commit": "cdd66d6a37d991bba7997d593586fc51a5b37aa8" }, "which-key.nvim": { "branch": "main", "commit": "7ccf476ebe0445a741b64e36c78a682c1c6118b7" }, "zen-mode.nvim": { "branch": "main", "commit": "68f554702de63f4b7b6b6d4bcb10178f41a0acc7" } } \ No newline at end of file diff --git a/lua/rayandrew/plugins.lua b/lua/rayandrew/plugins.lua index cd03113..5fc0a51 100644 --- a/lua/rayandrew/plugins.lua +++ b/lua/rayandrew/plugins.lua @@ -1225,4 +1225,15 @@ return { }) end, }, + + { + "christoomey/vim-tmux-navigator", + cmd = { + "TmuxNavigateLeft", + "TmuxNavigateDown", + "TmuxNavigateUp", + "TmuxNavigateRight", + }, + keys = { "", "", "", "" }, + }, } diff --git a/lua/rayandrew/remap.lua b/lua/rayandrew/remap.lua index d48090f..86bd0ca 100644 --- a/lua/rayandrew/remap.lua +++ b/lua/rayandrew/remap.lua @@ -65,18 +65,18 @@ Util.map("n", "wl", function() require("smart-splits").resize_right() end, { desc = "Window Resize Right" }) -- moving between splits -Util.map("n", "", function() - require("smart-splits").move_cursor_left() -end, { desc = "Focus to Left Window" }) -Util.map("n", "", function() - require("smart-splits").move_cursor_down() -end, { desc = "Focus to Lower Window" }) -Util.map("n", "", function() - require("smart-splits").move_cursor_up() -end, { desc = "Focus to Upper Window" }) -Util.map("n", "", function() - require("smart-splits").move_cursor_right() -end, { desc = "Focus to Right Window" }) +-- Util.map("n", "", function() +-- require("smart-splits").move_cursor_left() +-- end, { desc = "Focus to Left Window" }) +-- Util.map("n", "", function() +-- require("smart-splits").move_cursor_down() +-- end, { desc = "Focus to Lower Window" }) +-- Util.map("n", "", function() +-- require("smart-splits").move_cursor_up() +-- end, { desc = "Focus to Upper Window" }) +-- Util.map("n", "", function() +-- require("smart-splits").move_cursor_right() +-- end, { desc = "Focus to Right Window" }) -- swapping buffers between windows Util.map("n", "h", function() require("smart-splits").swap_buf_left()