From aaa8352e103a32d5411e684c6205627f0f5ea3ac Mon Sep 17 00:00:00 2001 From: tsorabel Date: Sat, 30 Mar 2024 21:25:20 +0100 Subject: [PATCH] feat: improve tmux alacritty nvim match --- lua/custom/plugins/harpoon.lua | 4 ++-- lua/custom/plugins/tmux-navigator.lua | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 lua/custom/plugins/tmux-navigator.lua diff --git a/lua/custom/plugins/harpoon.lua b/lua/custom/plugins/harpoon.lua index 6ee227ca..37c08aa5 100644 --- a/lua/custom/plugins/harpoon.lua +++ b/lua/custom/plugins/harpoon.lua @@ -9,7 +9,7 @@ return { vim.keymap.set({ 'n' }, 'a', function() harpoon:list():append() end, { desc = '[A]ppend File to harpoon' }) - vim.keymap.set('n', '', function() + vim.keymap.set('n', '', function() harpoon.ui:toggle_quick_menu(harpoon:list()) end, { desc = '[H]arpoon quick menu' }) @@ -52,7 +52,7 @@ return { :find() end - vim.keymap.set('n', '', function() + vim.keymap.set('n', '', function() toggle_telescope(harpoon:list()) end, { desc = 'Open harpoon window' }) end, diff --git a/lua/custom/plugins/tmux-navigator.lua b/lua/custom/plugins/tmux-navigator.lua new file mode 100644 index 00000000..58852263 --- /dev/null +++ b/lua/custom/plugins/tmux-navigator.lua @@ -0,0 +1,17 @@ +return { + 'christoomey/vim-tmux-navigator', + cmd = { + 'TmuxNavigateLeft', + 'TmuxNavigateDown', + 'TmuxNavigateUp', + 'TmuxNavigateRight', + 'TmuxNavigatePrevious', + }, + keys = { + { '', 'TmuxNavigateLeft' }, + { '', 'TmuxNavigateDown' }, + { '', 'TmuxNavigateUp' }, + { '', 'TmuxNavigateRight' }, + { '', 'TmuxNavigatePrevious' }, + }, +}