Tip: define your custom surrounds in one place #124
smjonas
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If you're like me, you might prefer to keep all your custom surrounds in one place instead of storing them in different files in the
filetype
directory. Here's how you can achieve that. Simply create a file similar to the following one and require it in packer.nvim'sconfig
function:Inside the autocommand callback,
opts.match
is the filetype of the current buffer. I then call nvim-surround'sbuffer_setup
function with the custom_surrounds if there are any for that filetype.Beta Was this translation helpful? Give feedback.
All reactions