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.
This commit is contained in:
Price Hiller 2024-01-21 01:34:04 -06:00
parent 8f1d9bfb84
commit 31d61b0c12
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -106,12 +106,6 @@ M.setup = function()
-- Binding to allow shift tab dedent
vim.keymap.set("i", "<S-Tab>", "<C-d>", { 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().'<CR>'",
{ silent = true, expr = true, desc = "Call Macro Against Visual Selection" })
vim.keymap.set("x", "Q", ':normal! @<C-R>=reg_recorded()<CR><CR>',
{ silent = true, desc = "Call Last Macro Against Visual Selection" })
-- Insert an Em Dash in insert mode
vim.keymap.set("i", "<A-->", "", { silent = true, desc = "Insert: Em Dash" })
end