Closed dlvhdr closed 2 years ago
You could use vim.keymap.set('n', '<Leader>"', '<cmd>norm ysiW"<cr>')
Thank you, I'll check that out!
What Jonas sent should work; an alternative keymap is the following:
vim.keymap.set("n", '<Leader>"', 'ysiW"', { remap = true })
or
vim.keymap.set("n", '<Leader>"', function()
return 'ysiW"'
end, { remap = true, expr = true })
Checklist
:h nvim-surround
to see if there might be any relevant information there?Is your feature request related to a problem? Please describe. I'm trying to set the following keymap:
vim.keymap.set("n", '<Leader>"', 'ysiW"', { silent = true })
I want it to surround words with quotations. Maybe I just don't know how to write this keymap.