From 31d61b0c12bc0f21930819ce65ec4deb351ad37f Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sun, 21 Jan 2024 01:34:04 -0600 Subject: [PATCH] refactor(nvim): remove custom bindings for macro ranges in insert mode Neovim master now has this functionality natively, no need to include it and maintain it in my own config. --- dots/.config/nvim/lua/core/mappings.lua | 6 ------ 1 file changed, 6 deletions(-) diff --git a/dots/.config/nvim/lua/core/mappings.lua b/dots/.config/nvim/lua/core/mappings.lua index 0f8c67ee..19f4d450 100755 --- a/dots/.config/nvim/lua/core/mappings.lua +++ b/dots/.config/nvim/lua/core/mappings.lua @@ -106,12 +106,6 @@ M.setup = function() -- Binding to allow shift tab dedent vim.keymap.set("i", "", "", { silent = true, desc = "Insert: Dedent" }) - -- Allow macros to be invoked over a visual range via a keybind in visual mode - vim.keymap.set("x", "@", "':normal! @'.getcharstr().''", - { silent = true, expr = true, desc = "Call Macro Against Visual Selection" }) - vim.keymap.set("x", "Q", ':normal! @=reg_recorded()', - { silent = true, desc = "Call Last Macro Against Visual Selection" }) - -- Insert an Em Dash in insert mode vim.keymap.set("i", "", "—", { silent = true, desc = "Insert: Em Dash" }) end