diff options
-rw-r--r-- | vimrc | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -24,10 +24,20 @@ augroup rust_save | au! autocmd BufWritePost *.rs redraw! augroup end +augroup zig_save | au! + autocmd BufWritePost *.zig !zig fmt '%:p:h' + autocmd BufWritePost *.zig edit! + autocmd BufWritePost *.zig redraw! +augroup end + autocmd FileType rust setlocal ts=4 sw=4 expandtab autocmd FileType rust set shiftwidth=4 autocmd FileType rust set softtabstop=4 +autocmd FileType zig setlocal ts=4 sw=4 expandtab +autocmd FileType zig set shiftwidth=4 +autocmd FileType zig set softtabstop=4 + autocmd FileType yaml setlocal ts=2 sw=2 expandtab autocmd FileType yaml set shiftwidth=2 autocmd FileType yaml set softtabstop=2 |