Skip to content

Commit a2a06da

Browse files
sand4rtaudunhov
authored andcommitted
feat(keymap): move windows without <C-w> (nvim-lua#1368)
1 parent 19c30e7 commit a2a06da

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

114+
-- NOTE: Some terminals have coliding keymaps or are not able to send distinct keycodes
115+
-- vim.keymap.set("n", "<C-S-h>", "<C-w>H", { desc = "Move window to the left" })
116+
-- vim.keymap.set("n", "<C-S-l>", "<C-w>L", { desc = "Move window to the right" })
117+
-- vim.keymap.set("n", "<C-S-j>", "<C-w>J", { desc = "Move window to the lower" })
118+
-- vim.keymap.set("n", "<C-S-k>", "<C-w>K", { desc = "Move window to the upper" })
119+
114120
-- [[ Basic Autocommands ]]
115121
-- See `:help lua-guide-autocommands`
116122

0 commit comments

Comments
 (0)