enable back tmux-navigator

This commit is contained in:
Ray Andrew 2023-08-07 00:49:03 -05:00
parent e5f10c2dee
commit 18ed338e93
No known key found for this signature in database
GPG key ID: E2E8D63137DD489E
3 changed files with 24 additions and 12 deletions

View file

@ -54,6 +54,7 @@
"vim-fugitive": { "branch": "master", "commit": "b3b838d690f315a503ec4af8c634bdff3b200aaf" }, "vim-fugitive": { "branch": "master", "commit": "b3b838d690f315a503ec4af8c634bdff3b200aaf" },
"vim-illuminate": { "branch": "master", "commit": "5ed17582a8e97bf0a0c617c3cf762e98f87b9859" }, "vim-illuminate": { "branch": "master", "commit": "5ed17582a8e97bf0a0c617c3cf762e98f87b9859" },
"vim-startuptime": { "branch": "master", "commit": "454b3de856b7bd298700de33d79774ca9b9e3875" }, "vim-startuptime": { "branch": "master", "commit": "454b3de856b7bd298700de33d79774ca9b9e3875" },
"vim-tmux-navigator": { "branch": "master", "commit": "cdd66d6a37d991bba7997d593586fc51a5b37aa8" },
"which-key.nvim": { "branch": "main", "commit": "7ccf476ebe0445a741b64e36c78a682c1c6118b7" }, "which-key.nvim": { "branch": "main", "commit": "7ccf476ebe0445a741b64e36c78a682c1c6118b7" },
"zen-mode.nvim": { "branch": "main", "commit": "68f554702de63f4b7b6b6d4bcb10178f41a0acc7" } "zen-mode.nvim": { "branch": "main", "commit": "68f554702de63f4b7b6b6d4bcb10178f41a0acc7" }
} }

View file

@ -1225,4 +1225,15 @@ return {
}) })
end, end,
}, },
{
"christoomey/vim-tmux-navigator",
cmd = {
"TmuxNavigateLeft",
"TmuxNavigateDown",
"TmuxNavigateUp",
"TmuxNavigateRight",
},
keys = { "<C-h>", "<C-j>", "<C-k>", "<C-l>" },
},
} }

View file

@ -65,18 +65,18 @@ Util.map("n", "<leader>wl", function()
require("smart-splits").resize_right() require("smart-splits").resize_right()
end, { desc = "Window Resize Right" }) end, { desc = "Window Resize Right" })
-- moving between splits -- moving between splits
Util.map("n", "<C-h>", function() -- Util.map("n", "<C-h>", function()
require("smart-splits").move_cursor_left() -- require("smart-splits").move_cursor_left()
end, { desc = "Focus to Left Window" }) -- end, { desc = "Focus to Left Window" })
Util.map("n", "<C-j>", function() -- Util.map("n", "<C-j>", function()
require("smart-splits").move_cursor_down() -- require("smart-splits").move_cursor_down()
end, { desc = "Focus to Lower Window" }) -- end, { desc = "Focus to Lower Window" })
Util.map("n", "<C-k>", function() -- Util.map("n", "<C-k>", function()
require("smart-splits").move_cursor_up() -- require("smart-splits").move_cursor_up()
end, { desc = "Focus to Upper Window" }) -- end, { desc = "Focus to Upper Window" })
Util.map("n", "<C-l>", function() -- Util.map("n", "<C-l>", function()
require("smart-splits").move_cursor_right() -- require("smart-splits").move_cursor_right()
end, { desc = "Focus to Right Window" }) -- end, { desc = "Focus to Right Window" })
-- swapping buffers between windows -- swapping buffers between windows
Util.map("n", "<leader><leader>h", function() Util.map("n", "<leader><leader>h", function()
require("smart-splits").swap_buf_left() require("smart-splits").swap_buf_left()