kylechui / nvim-surround

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

Do I need packer to install it? #104

Closed phcerdan closed 2 years ago

phcerdan commented 2 years ago

I am new to lua environments. Do I specifically need packer for installation, or vim managers like vim-plug would work?

Thanks!

kylechui commented 2 years ago

Vim-plug would work perfectly fine as well:

Plug "kylechui/nvim-surround"

should work.

phcerdan commented 2 years ago

Hi @kylechui, not working for me. yss for example works when I use vim-surround, but not with this. I can access the help function :help nvim-surround, and the plugin seems installed correctly, but there are no default mappings. Do I have to explicitly enable mappings or anything else for installation with vim-plug?

I am using nvim v0.7.2

kylechui commented 2 years ago

Ah, I forgot to mention that you need to run the setup function as well. You can do that using

lua << EOF
require("nvim-surround").setup()
EOF

I think; I'll need to look into the syntax a bit more later.

phcerdan commented 2 years ago

That was it. Thanks!