kylechui / nvim-surround

Add/change/delete surrounding delimiter pairs with ease. Written with :heart: in Lua.
MIT License
3.16k stars 63 forks source link

What Jonas sent should work; an alternative keymap is the following: #199

Closed angelollima closed 1 year ago

angelollima commented 1 year ago
          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 })

Originally posted by @kylechui in https://github.com/kylechui/nvim-surround/issues/134#issuecomment-1211022288

it's not working for me, any other alternatives?

smjonas commented 1 year ago

Both of them should work. What exactly happens when you type <leader>"?

angelollima commented 1 year ago

literally nothing

angelollima commented 1 year ago

actually <cr> is not working for me but <CR> is!! thanks for the attention, have a good one!