From 7c7efca68dcb5b3fcf1fb2baf0c22150f82b66d9 Mon Sep 17 00:00:00 2001 From: Abhinav Robinson Date: Mon, 17 Jun 2024 14:01:33 +0530 Subject: [PATCH] tmux --- init.lua | 8 ++++---- lua/custom/plugins/init.lua | 1 + lua/custom/plugins/tmux.lua | 17 +++++++++++++++++ 3 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 lua/custom/plugins/tmux.lua diff --git a/init.lua b/init.lua index a813606a..07b2834a 100644 --- a/init.lua +++ b/init.lua @@ -189,10 +189,10 @@ vim.keymap.set('t', '', '', { desc = 'Exit terminal mode' } -- Use CTRL+ to switch between windows -- -- See `:help wincmd` for a list of all window commands -vim.keymap.set('n', '', '', { desc = 'Move focus to the left window' }) -vim.keymap.set('n', '', '', { desc = 'Move focus to the right window' }) -vim.keymap.set('n', '', '', { desc = 'Move focus to the lower window' }) -vim.keymap.set('n', '', '', { desc = 'Move focus to the upper window' }) +-- vim.keymap.set('n', '', '', { desc = 'Move focus to the left window' }) +-- vim.keymap.set('n', '', '', { desc = 'Move focus to the right window' }) +-- vim.keymap.set('n', '', '', { desc = 'Move focus to the lower window' }) +-- vim.keymap.set('n', '', '', { desc = 'Move focus to the upper window' }) -- [[ Basic Autocommands ]] -- See `:help lua-guide-autocommands` diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index 96ccca50..2517a73a 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -10,4 +10,5 @@ return { require 'custom.plugins.typescript-tools', require 'custom.plugins.tsc', require 'custom.plugins.themes', + require 'custom.plugins.tmux', } diff --git a/lua/custom/plugins/tmux.lua b/lua/custom/plugins/tmux.lua new file mode 100644 index 00000000..58852263 --- /dev/null +++ b/lua/custom/plugins/tmux.lua @@ -0,0 +1,17 @@ +return { + 'christoomey/vim-tmux-navigator', + cmd = { + 'TmuxNavigateLeft', + 'TmuxNavigateDown', + 'TmuxNavigateUp', + 'TmuxNavigateRight', + 'TmuxNavigatePrevious', + }, + keys = { + { '', 'TmuxNavigateLeft' }, + { '', 'TmuxNavigateDown' }, + { '', 'TmuxNavigateUp' }, + { '', 'TmuxNavigateRight' }, + { '', 'TmuxNavigatePrevious' }, + }, +}