Closed tomtomjhj closed 2 years ago
I'm solving this by disabling Surround indenting if no Vim indenting option is set. There's no precedent for setting an indenting option inside a ftplugin.
If there are other reasons to set indentexpr=-1
, then we should probably suck it up and create a proper indent plugin.
vim-surround runs
=
after inserting parentheses. Ifequalprg
andindentexpr
are empty,=
does C-indenting, which usually messes up formatting of markdown documents. Settingindentexpr
to -1 makes=
no-op.I sneaked this change into
ftplugin/
instead ofindent/
because I believe it doesn't do anything special or intrusive that deserves a new file.