Skip to content

Commit 79ab599

Browse files
committed
Add a multiplexer support recipe
- From a recent scan, Navigator.nvim is quite nice - It was the fastest plugin that I identifier - It's written in lua
1 parent eac44cd commit 79ab599

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

lua/recipes.lua

+21-1
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,24 @@ return {
131131
},
132132
},
133133
},
134-
}
134+
135+
-- ## Multiplexer support (e.g. tmux, wezterm)
136+
--
137+
-- Allows you to seamlessly navigate between neovim and different terminal multiplexers.
138+
--
139+
-- Requires adding [these](https://github.com/numToStr/Navigator.nvim/wiki/Tmux-Integration) changes to your tmux config.
140+
{
141+
"numToStr/Navigator.nvim",
142+
config = function()
143+
require("Navigator").setup({
144+
disable_on_zoom = true,
145+
})
146+
end,
147+
keys = {
148+
{ "<C-h>", "<CMD>NavigatorLeft<CR>", mode = { "n", "t" } },
149+
{ "<C-l>", "<CMD>NavigatorRight<CR>", mode = { "n", "t" } },
150+
{ "<C-k>", "<CMD>NavigatorUp<CR>", mode = { "n", "t" } },
151+
{ "<C-j>", "<CMD>NavigatorDown<CR>", mode = { "n", "t" } },
152+
{ "<C-\\>", "<CMD>NavigatorPrevious<CR>", mode = { "n", "t" } },
153+
},
154+
}

0 commit comments

Comments
 (0)