From a43c8b2d1e426893e9a61a3e71315e8caeeb6ee2 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 17 Aug 2024 23:49:19 +0200 Subject: nvim: Create winmove for faster window/tab movement --- .config/nvim/init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '.config/nvim/init.lua') 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', 'a', 'gg0oG$', { desc = 'Select the [A]ll of the buffer' }) vim.keymap.set('o', 'a', ':normal! ggVG', { desc = 'Text object of [A]ll of the buffer', silent = true }) -vim.keymap.set('n', '', '', - { desc = 'Move focus to the left window' }) vim.keymap.set('n', '', '', { desc = 'Move focus to the lower window' }) vim.keymap.set('n', '', '', { desc = 'Move focus to the upper window' }) -vim.keymap.set('n', '', '', - { desc = 'Move focus to the right window' }) +vim.keymap.set('n', '', ':WinMovePrev', + { desc = 'Move focus to the left window', silent = true }) +vim.keymap.set('n', '', ':WinMoveNext', + { desc = 'Move focus to the right window', silent = true }) vim.keymap.set('n', 'h', function() vim.cmd 'split' end, { desc = 'Open a [H]orizontal split' }) vim.keymap.set('n', 'v', function() vim.cmd 'vsplit' end, -- cgit v1.2.3