Skip to content

Commit fc184c1

Browse files
sand4rtscrewage
authored andcommitted
feat(keymap): move windows without <C-w> (nvim-lua#1368)
1 parent 59aefd4 commit fc184c1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

init.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,12 @@ vim.keymap.set('t', '<Esc><Esc>', '<C-\\><C-n>', { desc = 'Exit terminal mode' }
175175
-- vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
176176
-- vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
177177

178+
-- NOTE: Some terminals have coliding keymaps or are not able to send distinct keycodes
179+
-- vim.keymap.set("n", "<C-S-h>", "<C-w>H", { desc = "Move window to the left" })
180+
-- vim.keymap.set("n", "<C-S-l>", "<C-w>L", { desc = "Move window to the right" })
181+
-- vim.keymap.set("n", "<C-S-j>", "<C-w>J", { desc = "Move window to the lower" })
182+
-- vim.keymap.set("n", "<C-S-k>", "<C-w>K", { desc = "Move window to the upper" })
183+
178184
-- [[ Basic Autocommands ]]
179185
-- See `:help lua-guide-autocommands`
180186

0 commit comments

Comments
 (0)