Skip to content

Commit 8e7a9df

Browse files
sand4rtvencronys
authored andcommitted
feat(keymap): move windows without <C-w> (nvim-lua#1368)
1 parent e5164f7 commit 8e7a9df

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

init.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,12 @@ vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right win
210210
vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
211211
vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
212212

213+
-- NOTE: Some terminals have coliding keymaps or are not able to send distinct keycodes
214+
-- vim.keymap.set("n", "<C-S-h>", "<C-w>H", { desc = "Move window to the left" })
215+
-- vim.keymap.set("n", "<C-S-l>", "<C-w>L", { desc = "Move window to the right" })
216+
-- vim.keymap.set("n", "<C-S-j>", "<C-w>J", { desc = "Move window to the lower" })
217+
-- vim.keymap.set("n", "<C-S-k>", "<C-w>K", { desc = "Move window to the upper" })
218+
213219
vim.keymap.set('v', 'J', ":m '>+1<CR>gv=gv")
214220
vim.keymap.set('v', 'K', ":m '<-2<CR>gv=gv")
215221

0 commit comments

Comments
 (0)