In an Rmd or qmd file, you can start an inline code block with a backtick using the rmdchunk=2 option. Can I request that typing a second backtick closes the chunk, not closes and opens a new one?
For example, typing a ` when starting from this (with cursor represented by |):
Test `r |`
Currently, that results in:
Test `r ``r |`
I would propose that this is more intuitive, and matches how autopair plugins tend to work, for example:
Test `r `|
I assume this can be achieved by checking if the next character is a `, as an additional if statement following this line, but I don't know enough of the Neovim API to know how to do that sensibly.
In an Rmd or qmd file, you can start an inline code block with a backtick using the
rmdchunk=2
option. Can I request that typing a second backtick closes the chunk, not closes and opens a new one?For example, typing a
`
when starting from this (with cursor represented by|
):Currently, that results in:
I would propose that this is more intuitive, and matches how autopair plugins tend to work, for example:
I assume this can be achieved by checking if the next character is a
`
, as an additionalif
statement following this line, but I don't know enough of the Neovim API to know how to do that sensibly.