feat(nvim): add live-command.nvim
This commit is contained in:
parent
deab436e2d
commit
caedcc924f
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user