Skip to content

Commit 9313117

Browse files
sand4rtpieterlexis-tomtom
authored andcommitted
feat(keymap): move windows without <C-w> (nvim-lua#1368)
1 parent ab4999f commit 9313117

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
@@ -147,6 +147,12 @@ vim.keymap.set('n', '<M-l>', '<cmd>resize +5<CR>', { desc = 'Increase split widt
147147
vim.keymap.set('n', '<M-j>', '<cmd>vertical resize -1<CR>', { desc = 'Decrease split height' })
148148
vim.keymap.set('n', '<M-k>', '<cmd>vertical resize +1<CR>', { desc = 'Increase split height' })
149149

150+
-- NOTE: Some terminals have coliding keymaps or are not able to send distinct keycodes
151+
-- vim.keymap.set("n", "<C-S-h>", "<C-w>H", { desc = "Move window to the left" })
152+
-- vim.keymap.set("n", "<C-S-l>", "<C-w>L", { desc = "Move window to the right" })
153+
-- vim.keymap.set("n", "<C-S-j>", "<C-w>J", { desc = "Move window to the lower" })
154+
-- vim.keymap.set("n", "<C-S-k>", "<C-w>K", { desc = "Move window to the upper" })
155+
150156
-- [[ Basic Autocommands ]]
151157
-- See `:help lua-guide-autocommands`
152158

0 commit comments

Comments
 (0)