derekwyatt / vim-scala

My work on integration of Scala into Vim - not a ton here, but useful for me.
http://derekwyatt.org
Apache License 2.0
1.09k stars 144 forks source link

SortScalaImports adds an empty line to multiline import clauses #154

Closed srstevenson closed 1 year ago

srstevenson commented 6 years ago

When sorting import clauses across groups is enabled, SortScalaImports adds an empty line within multiline import clauses. To reproduce, let g:scala_sort_across_groups = 1 and add the following contents to a buffer:

import cats.data.{
  Validated,
  Xor
}

Then run :SortScalaImports, and the import clause will have an empty line added after the opening brace:

import cats.data.{

  Validated,
  Xor
}

This is with vim-scala at https://github.com/derekwyatt/vim-scala/commit/0b909e24f31d94552eafae610da0f31040c08f2b and Neovim 0.3.1.