Skip to content

Commit 2c1cbcc

Browse files
sand4rtjurrien-fakkeldij
authored andcommitted
feat(keymap): move windows without <C-w> (nvim-lua#1368)
1 parent fd476bc commit 2c1cbcc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

init.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@ vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper win
196196

197197
-- Custom commands
198198
vim.keymap.set('n', '<leader>pv', vim.cmd.Ex, { desc = 'Go to Ex' })
199+
-- NOTE: Some terminals have coliding keymaps or are not able to send distinct keycodes
200+
-- vim.keymap.set("n", "<C-S-h>", "<C-w>H", { desc = "Move window to the left" })
201+
-- vim.keymap.set("n", "<C-S-l>", "<C-w>L", { desc = "Move window to the right" })
202+
-- vim.keymap.set("n", "<C-S-j>", "<C-w>J", { desc = "Move window to the lower" })
203+
-- vim.keymap.set("n", "<C-S-k>", "<C-w>K", { desc = "Move window to the upper" })
199204

200205
-- [[ Basic Autocommands ]]
201206
-- See `:help lua-guide-autocommands`

0 commit comments

Comments
 (0)