Skip to content

How do I surround a movement with parenthesis in insert-mode? #225

Answered by gregorias
gregorias asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for the idea. I remapped <C-y> to run nvim-surround in normal mode once:

require("which-key").register({
	["<C-y>"] = { "<C-o>ys", "(You) surround with" },
}, { mode = "i", silent = true, noremap = false })

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gregorias
Comment options

Answer selected by gregorias
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants