Skip to content

surround: disabling surround type and granular control #982

Closed Answered by echasnovski
simonmandlik asked this question in Q&A
Discussion options

You must be logged in to vote
  • disable function call "f" surround. Tried setting custom_surroundings = { f = false } (as in mini.ai), but it throws an error: Error executing lua vim/shared.lua:0: after the second argument: expected table, got boolean

Disabling built-in surrounding identifiers doesn't make much sense, as there is typically nothing to fall back to. It makes sense in 'mini.ai', because there are many built-in a / i textobjects (like i), a", etc.), not even mentioning coming from other plugins. So the best suggestion for "disabling" is indeed overriding it with something else. Empty tables as specifications is not the case that is explicitly supported, though. So maybe coming up with something else is …

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@simonmandlik
Comment options

@echasnovski
Comment options

@simonmandlik
Comment options

@echasnovski
Comment options

@simonmandlik
Comment options

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