A need to create commands #32
EtiamNullam
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The feature this plugin exposes seems powerful. Too bad new command has to be created, it would be nice if we could simply declare command to include live preview.
I think some way around it currently is to use
:cabbrevso there is no need to change:cabbrev norm NormSo if whenever you put
normin your command-line it will be changed toNormso you will have the preview.Full config example with
lazy.nvimpackage manager:{ 'smjonas/live-command.nvim', config = function() require('live-command').setup { commands = { Normal = { cmd = "normal" }, }, } vim.api.nvim_command('cabbrev norm Norm') vim.api.nvim_command('cabbrev norma Norma') vim.api.nvim_command('cabbrev normal Normal') end, },Beta Was this translation helpful? Give feedback.
All reactions