From 0244e228faf6ee71750cbca3bdcd18411a927d22 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sun, 11 Sep 2016 13:24:17 +0200 Subject: Update --- indent/scala.vim | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'indent/scala.vim') diff --git a/indent/scala.vim b/indent/scala.vim index 6f5d1da9..da6c2f5c 100644 --- a/indent/scala.vim +++ b/indent/scala.vim @@ -378,12 +378,17 @@ function! GetScalaIndent() let prevline = scala#GetLine(prevlnum) let curlnum = v:lnum let curline = scala#GetLine(curlnum) + if get(g:, 'scala_scaladoc_indent', 0) + let star_indent = 2 + else + let star_indent = 1 + end if prevline =~ '^\s*/\*\*' if prevline =~ '\*/\s*$' return ind else - return ind + 1 + return ind + star_indent endif endif @@ -538,7 +543,7 @@ function! GetScalaIndent() if prevline =~ '^\s*\*/' \ || prevline =~ '*/\s*$' call scala#ConditionalConfirm("18") - let ind = ind - 1 + let ind = ind - star_indent endif if scala#LineEndsInIncomplete(prevline) -- cgit v1.2.3