Closed gregorias closed 1 year ago
Another way I addressed this issue is by configuring indentation for Haskell correctly with https://github.com/itchyny/vim-haskell-indent and not rely on smartindent
.
Nevertheless, perhaps it's worth considering not intending single line surrounds.
Checklist
:h nvim-surround
to see if there might be any relevant information there?Neovim Version
v0.8.3
Plugin Version
Nightly (Beta)
Minimal Configuration
Sample Buffer
Keystroke Sequence
Put the cursor before
D
on the 3rd line, thenExpected behavior
The buffer looks like this:
Actual behavior
The buffer looks like this:
Additional context
Possibly adding a check not to indent single line selection would be the right behavior.
I don't think it's not an error with not setting tabstop correctly. If I do
then I still get spurious indentation of 2 additional spaces.