added tmux and nvim integration for pane switching

This commit is contained in:
Christopher Beckmann
2023-10-14 15:16:37 +02:00
parent 22e741c30c
commit 1497c7967c
3 changed files with 17 additions and 7 deletions

View File

@@ -1,4 +1,12 @@
return {}
return {
'christoomey/vim-tmux-navigator',
config = function()
vim.keymap.set('n', '<M-Left>', ':<C-U>TmuxNavigateLeft<cr>', { noremap = true, silent = true })
vim.keymap.set('n', '<M-Down>', ':<C-U>TmuxNavigateDown<cr>', { noremap = true, silent = true })
vim.keymap.set('n', '<M-Up>', ':<C-U>TmuxNavigateUp<cr>', { noremap = true, silent = true })
vim.keymap.set('n', '<M-Right>', ':<C-U>TmuxNavigateRight<cr>', { noremap = true, silent = true })
end
}
--return {
-- "aserowy/tmux.nvim",
-- config = function()