feat(nvim): add live-command.nvim

This commit is contained in:
Price Hiller 2023-05-03 13:39:14 -05:00
parent deab436e2d
commit caedcc924f
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -886,6 +886,27 @@ lazy.setup({
}) })
end, end,
}, },
-- Preview Norm commands, global, macros
{
"smjonas/live-command.nvim",
event = "VeryLazy",
config = function()
require("live-command").setup({
commands = {
Norm = { cmd = "norm" },
Reg = {
cmd = "norm",
-- This will transform ":5Reg a" into ":norm 5@a"
args = function(opts)
return (opts.count == -1 and "" or opts.count) .. "@" .. opts.args
end,
range = "",
},
},
})
end,
},
}, { }, {
checker = { checker = {
enabled = true, enabled = true,