update tmux navigator keybinds
This commit is contained in:
parent
1c3d7d81d3
commit
a3a12b100e
9
init.lua
9
init.lua
@ -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 })
|
||||||
|
Loading…
Reference in New Issue
Block a user