aboutsummaryrefslogtreecommitdiffstats
path: root/ftplugin
diff options
context:
space:
mode:
authorTeddy Wing2020-07-17 19:54:18 +0200
committerTeddy Wing2020-07-17 19:54:18 +0200
commit38cddd2e0d8c692c00b584869bce602e155fb355 (patch)
tree64431500dadcfa8a46dd0d59198530318aff10d6 /ftplugin
parentd8812a2637337fc8bd5e8d352bd3477093c1646e (diff)
downloaddotvim-38cddd2e0d8c692c00b584869bce602e155fb355.tar.bz2
ftplugin/rust.vim: Turn on `b:argwrap_tail_comma`
Rust style seems to prefer trailing commas.
Diffstat (limited to 'ftplugin')
-rw-r--r--ftplugin/rust.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/ftplugin/rust.vim b/ftplugin/rust.vim
index c45091f..6f6b275 100644
--- a/ftplugin/rust.vim
+++ b/ftplugin/rust.vim
@@ -9,3 +9,7 @@ setlocal shiftwidth=4
" Comment string
setlocal commentstring=//\ %s
+
+
+" Add a trailing comma when expanding elements to multiple lines
+let b:argwrap_tail_comma = 1