1
0

update tmux navigator keybinds

This commit is contained in:
Rokas Puzonas 2023-11-14 15:10:31 +02:00
parent 1c3d7d81d3
commit a3a12b100e

View File

@ -613,10 +613,11 @@ do
vim.keymap.set("n", "Q", "<nop>") vim.keymap.set("n", "Q", "<nop>")
-- Window movement -- Window movement
vim.keymap.set("n", "<c-h>", "<c-w>h") vim.g.tmux_navigator_no_mappings = 1
vim.keymap.set("n", "<c-j>", "<c-w>j") vim.keymap.set("n", "<c-h>", ":TmuxNavigateLeft<CR>", { noremap = true, silent=true })
vim.keymap.set("n", "<c-k>", "<c-w>k") vim.keymap.set("n", "<c-j>", ":TmuxNavigateDown<CR>", { noremap = true, silent=true })
vim.keymap.set("n", "<c-l>", "<c-w>l") vim.keymap.set("n", "<c-k>", ":TmuxNavigateUp<CR>", { noremap = true, silent=true })
vim.keymap.set("n", "<c-l>", ":TmuxNavigateRight<CR>", { noremap = true, silent=true })
-- Resize windows -- Resize windows
vim.keymap.set('n', '<M-j>', ':resize -2<cr>', { silent = true }) vim.keymap.set('n', '<M-j>', ':resize -2<cr>', { silent = true })