diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2022-10-14 17:40:10 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2022-10-14 17:40:10 +0200 |
commit | bc8a81d3592dab86334f27d1d43c080ebf680d42 (patch) | |
tree | f367857d8c196d36f2d6dec3c2f6c9d703b06b7c /indent/dart.vim | |
parent | 38282d58387cff48ac203f6912c05e4c8686141b (diff) | |
download | vim-polyglot-bc8a81d3592dab86334f27d1d43c080ebf680d42.tar.gz vim-polyglot-bc8a81d3592dab86334f27d1d43c080ebf680d42.zip |
Update
Diffstat (limited to 'indent/dart.vim')
-rw-r--r-- | indent/dart.vim | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/indent/dart.vim b/indent/dart.vim index 4f08a36f..f685cfa7 100644 --- a/indent/dart.vim +++ b/indent/dart.vim @@ -8,7 +8,12 @@ endif let b:did_indent = 1 setlocal cindent -setlocal cinoptions+=j1,J1,(2s,u2s,U1,m1,+2s +setlocal cinoptions+=j1,J1,U1,m1,+2s +if get(g:, 'dart_trailing_comma_indent', v:false) + setlocal cinoptions+=(2s,u2s +else + setlocal cinoptions+=(s,us +endif setlocal indentexpr=DartIndent() |