From f852b876018200543c869c698bbf1dfe9d1deefc Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Wed, 31 Jul 2024 21:03:59 +0200 Subject: [PATCH] Line/word selection moving bindings are now silent --- lua/keymaps.lua | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lua/keymaps.lua b/lua/keymaps.lua index 64434bb..069b6b6 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -35,18 +35,18 @@ vim.keymap.set('n', '', '', { desc = 'Move focus to the lower win vim.keymap.set('n', '', '', { desc = 'Move focus to the upper window' }) -- Normal-mode commands -vim.keymap.set('n', '', ':MoveLine(1)') -vim.keymap.set('n', '', ':MoveLine(-1)') -vim.keymap.set('n', '', ':MoveHChar(-1)') -vim.keymap.set('n', '', ':MoveHChar(1)') -vim.keymap.set('n', 'wf', ':MoveWord(1)') -vim.keymap.set('n', 'wb', ':MoveWord(-1)') +vim.keymap.set('n', '', 'MoveLine(1)') +vim.keymap.set('n', '', 'MoveLine(-1)') +vim.keymap.set('n', '', 'MoveHChar(-1)') +vim.keymap.set('n', '', 'MoveHChar(1)') +vim.keymap.set('n', 'wf', 'MoveWord(1)') +vim.keymap.set('n', 'wb', 'MoveWord(-1)') -- Visual-mode commands -vim.keymap.set('v', '', ':MoveBlock(1)') -vim.keymap.set('v', '', ':MoveBlock(-1)') -vim.keymap.set('v', '', ':MoveHBlock(-1)') -vim.keymap.set('v', '', ':MoveHBlock(1)') +vim.keymap.set('v', '', 'MoveBlock(1)') +vim.keymap.set('v', '', 'MoveBlock(-1)') +vim.keymap.set('v', '', 'MoveHBlock(-1)') +vim.keymap.set('v', '', 'MoveHBlock(1)') -- [[ Basic Autocommands ]] -- See `:help lua-guide-autocommands`