From 2492c8b003dd870a9830ee4cb21be2c958aeb828 Mon Sep 17 00:00:00 2001 From: Stefan Szymanski Date: Sun, 6 Sep 2020 21:29:54 +0200 Subject: [PATCH] feat: Add rules for indentation --- ftplugin/typoscript.vim | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ftplugin/typoscript.vim b/ftplugin/typoscript.vim index 9cb4ab3..488e092 100644 --- a/ftplugin/typoscript.vim +++ b/ftplugin/typoscript.vim @@ -1 +1,9 @@ -setlocal commentstring=//\ %s +setlocal commentstring=#%s + +setlocal cindent +setlocal cinwords= +setlocal cinoptions= +" Do not indent after assignment +setlocal cinoptions+=+0 +" Indent multi line value, but not closing brace +setlocal cinoptions+=(s,m1