mini.pair move other content to next line. #1778
-
Contributing guidelines
Module(s)mini.pairs Questionflash.enable = true; Let's say I have the above situation flash = {
settings = something;
enable = true;
}; when i try to add currently it stays like flash{}
enable this behavior will make it easier |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Sorry, but this behavior doesn't fit a design of 'mini.pairs' at all. The current behavior does, as it inserts a pair. For a more complex editing, use Normal mode actions/operators. For example, from 'mini.surround'. But in this particular case I'd do something like this:
|
Beta Was this translation helpful? Give feedback.
Sorry, but this behavior doesn't fit a design of 'mini.pairs' at all. The current behavior does, as it inserts a pair. For a more complex editing, use Normal mode actions/operators. For example, from 'mini.surround'.
But in this particular case I'd do something like this:
.
in Normal mode.x
to remove the dot.C
to remove all the text to the right (which putsenable = true;
in the"
register) and starts Insert mode.{
to insert a{}
pair.<CR>
to start new line from inside braces.<C-R>"
to insert contents of"
register.