35 lines
997 B
Lua
35 lines
997 B
Lua
return {
|
|
{ -- integration with tmux config
|
|
"alexghergh/nvim-tmux-navigation",
|
|
config = function()
|
|
local nvim_tmux_nav = require("nvim-tmux-navigation")
|
|
|
|
nvim_tmux_nav.setup({
|
|
disable_when_zoomed = true, -- defaults to false
|
|
})
|
|
|
|
vim.keymap.set(
|
|
"n",
|
|
"<S-left>",
|
|
nvim_tmux_nav.NvimTmuxNavigateLeft,
|
|
{ desc = "Move to the split to the left" }
|
|
)
|
|
vim.keymap.set("n", "<S-down>", nvim_tmux_nav.NvimTmuxNavigateDown, { desc = "Move to the split below" })
|
|
vim.keymap.set("n", "<S-up>", nvim_tmux_nav.NvimTmuxNavigateUp, { desc = "Move to the split above" })
|
|
vim.keymap.set(
|
|
"n",
|
|
"<S-right>",
|
|
nvim_tmux_nav.NvimTmuxNavigateRight,
|
|
{ desc = "Move to the split to the right" }
|
|
)
|
|
vim.keymap.set(
|
|
"n",
|
|
"<C-\\>",
|
|
nvim_tmux_nav.NvimTmuxNavigateLastActive,
|
|
{ desc = "Move to the last active split" }
|
|
)
|
|
vim.keymap.set("n", "<C-Space>", nvim_tmux_nav.NvimTmuxNavigateNext, { desc = "Move to the next split" })
|
|
end,
|
|
},
|
|
}
|