@@ -193,10 +193,14 @@ vim.keymap.set('t', '<Esc><Esc>', '<C-\\><C-n>', { desc = 'Exit terminal mode' }
193193-- Use CTRL+<hjkl> to switch between windows
194194--
195195-- See `:help wincmd` for a list of all window commands
196- vim .keymap .set (' n' , ' <C-h>' , ' <C-w><C-h>' , { desc = ' Move focus to the left window' })
197- vim .keymap .set (' n' , ' <C-l>' , ' <C-w><C-l>' , { desc = ' Move focus to the right window' })
198- vim .keymap .set (' n' , ' <C-j>' , ' <C-w><C-j>' , { desc = ' Move focus to the lower window' })
199- vim .keymap .set (' n' , ' <C-k>' , ' <C-w><C-k>' , { desc = ' Move focus to the upper window' })
196+ vim .keymap .set (' n' , ' <C-h>' , ' <cmd> TmuxNavigateLeft<CR>' , { desc = ' Move focus to the left window' })
197+ vim .keymap .set (' n' , ' <C-l>' , ' <cmd> TmuxNavigateRight<CR>' , { desc = ' Move focus to the right window' })
198+ vim .keymap .set (' n' , ' <C-j>' , ' <cmd> TmuxNavigateDown<CR>' , { desc = ' Move focus to the lower window' })
199+ vim .keymap .set (' n' , ' <C-k>' , ' <cmd> TmuxNavigateUp<CR>' , { desc = ' Move focus to the upper window' })
200+ -- vim.keymap.set('n', '<C-h>', 'C-w><C-h>', { desc = 'Move focus to the left window' })
201+ -- vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right window' })
202+ -- vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
203+ -- vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
200204
201205-- [[ Basic Autocommands ]]
202206-- See `:help lua-guide-autocommands`
@@ -264,6 +268,10 @@ require('lazy').setup({
264268 end ,
265269 },
266270 },
271+ {
272+ ' christoomey/vim-tmux-navigator' ,
273+ lazy = false ,
274+ },
267275
268276 -- NOTE: Plugins can also be added by using a table,
269277 -- with the first argument being the link and the following
0 commit comments