Skip to content

Commit 861e2a4

Browse files
committed
Add more formatting helpers
1 parent 05e19af commit 861e2a4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.rustfmt.toml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
max_width = 80
2+
reorder_imports = true

.vimrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
let g:rustfmt_autosave = 1
2+
3+
autocmd BufEnter *.rs setlocal tabstop=4 shiftwidth=4 softtabstop=4 expandtab textwidth=80

0 commit comments

Comments
 (0)