summaryrefslogtreecommitdiff
path: root/.config/nvim/init.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/init.lua')
-rw-r--r--.config/nvim/init.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua
index c44aa7f..285b334 100644
--- a/.config/nvim/init.lua
+++ b/.config/nvim/init.lua
@@ -56,14 +56,14 @@ vim.keymap.set('x', '<Leader>a', 'gg0oG$',
{ desc = 'Select the [A]ll of the buffer' })
vim.keymap.set('o', '<Leader>a', ':normal! ggVG<CR>',
{ desc = 'Text object of [A]ll of the buffer', silent = true })
-vim.keymap.set('n', '<C-h>', '<C-w><C-h>',
- { desc = 'Move focus to the left window' })
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' })
-vim.keymap.set('n', '<C-l>', '<C-w><C-l>',
- { desc = 'Move focus to the right window' })
+vim.keymap.set('n', '<C-h>', ':WinMovePrev<CR>',
+ { desc = 'Move focus to the left window', silent = true })
+vim.keymap.set('n', '<C-l>', ':WinMoveNext<CR>',
+ { desc = 'Move focus to the right window', silent = true })
vim.keymap.set('n', '<Leader>h', function() vim.cmd 'split' end,
{ desc = 'Open a [H]orizontal split' })
vim.keymap.set('n', '<Leader>v', function() vim.cmd 'vsplit' end,