diff options
| author | Sander <info@mesander.com> | 2025-03-24 20:34:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-24 15:34:57 -0400 |
| commit | cff2d01e52d12722a864c98e8e458d183fd7932f (patch) | |
| tree | b9cc9e00f0033a7dfd276e9fef8704755901ea63 | |
| parent | 7bd85e0a095d008f390ec72cfbeda30b167b8bf3 (diff) | |
| download | dots-cff2d01e52d12722a864c98e8e458d183fd7932f.tar.gz | |
feat(keymap): move windows without `<C-w>` (#1368)
| -rw-r--r-- | nvim/init.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nvim/init.lua b/nvim/init.lua index a39cd0e..0c8d08a 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -107,6 +107,12 @@ vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right win vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' }) vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' }) +-- NOTE: Some terminals have coliding keymaps or are not able to send distinct keycodes +-- vim.keymap.set("n", "<C-S-h>", "<C-w>H", { desc = "Move window to the left" }) +-- vim.keymap.set("n", "<C-S-l>", "<C-w>L", { desc = "Move window to the right" }) +-- vim.keymap.set("n", "<C-S-j>", "<C-w>J", { desc = "Move window to the lower" }) +-- vim.keymap.set("n", "<C-S-k>", "<C-w>K", { desc = "Move window to the upper" }) + -- [[ Basic Autocommands ]] -- See `:help lua-guide-autocommands` |