aboutsummaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorBlista Kanjo2023-07-07 19:42:24 -0400
committerBlista Kanjo2023-07-07 19:42:24 -0400
commitf3ff7a69d1b1bd9b47aef23b4eb3ba7813170527 (patch)
treed2d5a380d460bc1dd2303c264d5cdf20e4170add /.config
parentaed938a5cbf2605785f6473db46701f319b19c99 (diff)
feat: splits and vsplits movement keybinds
Diffstat (limited to '.config')
-rw-r--r--.config/nvim/lua/keys.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/.config/nvim/lua/keys.lua b/.config/nvim/lua/keys.lua
index 0ab6b00..f09c2c3 100644
--- a/.config/nvim/lua/keys.lua
+++ b/.config/nvim/lua/keys.lua
@@ -21,6 +21,13 @@ vim.api.nvim_set_keymap("n", "<leader>/", ":NERDTreeFind<CR>", { noremap = true
-- spell check keybinds
vim.api.nvim_set_keymap("n", "<leader>sc", ":set spell!<CR>", { silent = true })
+-- splits and vsplits movement rebinds
+vim.api.nvim_set_keymap('n', '<A-j>', '<C-W>j', { noremap = true })
+vim.api.nvim_set_keymap('n', '<A-k>', '<C-W>k', { noremap = true })
+vim.api.nvim_set_keymap('n', '<A-l>', '<C-W>l', { noremap = true })
+vim.api.nvim_set_keymap('n', '<A-h>', '<C-W>h', { noremap = true })
+vim.api.nvim_set_keymap('n', '<A-w>', '<C-W>w', { noremap = true })
+
-- splits and vsplits resize rebinds
vim.api.nvim_set_keymap('n', '<A-,>', '<C-W>5<', { noremap = true })
vim.api.nvim_set_keymap('n', '<A-.>', '<C-W>5>', { noremap = true })