From a3a12b100e65b20a0f586df50c899f64899b8913 Mon Sep 17 00:00:00 2001 From: Rokas Puzonas Date: Tue, 14 Nov 2023 15:10:31 +0200 Subject: [PATCH] update tmux navigator keybinds --- init.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index df578c6..fce3626 100644 --- a/init.lua +++ b/init.lua @@ -613,10 +613,11 @@ do vim.keymap.set("n", "Q", "") -- Window movement - vim.keymap.set("n", "", "h") - vim.keymap.set("n", "", "j") - vim.keymap.set("n", "", "k") - vim.keymap.set("n", "", "l") + vim.g.tmux_navigator_no_mappings = 1 + vim.keymap.set("n", "", ":TmuxNavigateLeft", { noremap = true, silent=true }) + vim.keymap.set("n", "", ":TmuxNavigateDown", { noremap = true, silent=true }) + vim.keymap.set("n", "", ":TmuxNavigateUp", { noremap = true, silent=true }) + vim.keymap.set("n", "", ":TmuxNavigateRight", { noremap = true, silent=true }) -- Resize windows vim.keymap.set('n', '', ':resize -2', { silent = true })