diff --git a/dots/.config/nvim/lua/plugins/plugins.lua b/dots/.config/nvim/lua/plugins/plugins.lua index f3df0c5b..fd5272a2 100755 --- a/dots/.config/nvim/lua/plugins/plugins.lua +++ b/dots/.config/nvim/lua/plugins/plugins.lua @@ -886,6 +886,27 @@ lazy.setup({ }) 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 = { enabled = true,