From 0244e228faf6ee71750cbca3bdcd18411a927d22 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sun, 11 Sep 2016 13:24:17 +0200 Subject: Update --- ftplugin/scala.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ftplugin/scala.vim') diff --git a/ftplugin/scala.vim b/ftplugin/scala.vim index 24b24136..026e20cd 100644 --- a/ftplugin/scala.vim +++ b/ftplugin/scala.vim @@ -18,7 +18,11 @@ silent! setlocal formatoptions+=j " Just like c.vim, but additionally doesn't wrap text onto /** line when " formatting. Doesn't bungle bulleted lists when formatting. -setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/**,mb:*,ex:*/,s1:/*,mb:*,ex:*/,:// +if get(g:, 'scala_scaladoc_indent', 0) + setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s2:/**,mb:*,ex:*/,s1:/*,mb:*,ex:*/,:// +else + setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/**,mb:*,ex:*/,s1:/*,mb:*,ex:*/,:// +endif setlocal commentstring=//\ %s setlocal shiftwidth=2 softtabstop=2 expandtab -- cgit v1.2.3