Skip to content

Commit 7e6cc96

Browse files
sand4rtjimmielyon
authored andcommitted
feat(keymap): move windows without <C-w> (nvim-lua#1368)
1 parent 307c227 commit 7e6cc96

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
@@ -199,6 +199,12 @@ vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right win
199199
vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
200200
vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
201201

202+
-- NOTE: Some terminals have coliding keymaps or are not able to send distinct keycodes
203+
-- vim.keymap.set("n", "<C-S-h>", "<C-w>H", { desc = "Move window to the left" })
204+
-- vim.keymap.set("n", "<C-S-l>", "<C-w>L", { desc = "Move window to the right" })
205+
-- vim.keymap.set("n", "<C-S-j>", "<C-w>J", { desc = "Move window to the lower" })
206+
-- vim.keymap.set("n", "<C-S-k>", "<C-w>K", { desc = "Move window to the upper" })
207+
202208
-- [[ Basic Autocommands ]]
203209
-- See `:help lua-guide-autocommands`
204210

0 commit comments

Comments
 (0)