From 60b77914a4b983b67673c4c3062b54c3a0491770 Mon Sep 17 00:00:00 2001 From: S Date: Sun, 5 Apr 2020 00:50:32 +0530 Subject: [PATCH] Update scala.vim Default remains unchanged but added an option to not use scala recommended style. --- ftplugin/scala.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ftplugin/scala.vim b/ftplugin/scala.vim index 2c0361a..29981f0 100644 --- a/ftplugin/scala.vim +++ b/ftplugin/scala.vim @@ -23,7 +23,9 @@ else endif setlocal commentstring=//\ %s -setlocal shiftwidth=2 softtabstop=2 expandtab +if get(g:, 'scala_recommended_style', 1) + setlocal shiftwidth=2 softtabstop=2 expandtab +endif setlocal include=^\\s*import setlocal includeexpr=substitute(v:fname,'\\.','/','g')