mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-18 11:36:44 +00:00
fix(vim-shfmt): remove duplicate autocmd (now exists upstream)
This commit is contained in:
+12
-6
@@ -1,9 +1,15 @@
|
||||
"""""""""""""""""""""""""""""""""
|
||||
" shfmt-specific defaults "
|
||||
" from webinstall.dev/vim-shfmt "
|
||||
"""""""""""""""""""""""""""""""""
|
||||
|
||||
" Change Log
|
||||
"
|
||||
" 2023-03-06:
|
||||
" - remove explicit file extension detection
|
||||
" (this now works as expected by default)
|
||||
|
||||
|
||||
" 4 indents, Space between redirects, Indented case statements, Simplified
|
||||
let g:shfmt_extra_args = '-i 4 -sr -ci -s'
|
||||
let g:shfmt_fmt_on_save = 1
|
||||
|
||||
augroup LocalShell
|
||||
autocmd!
|
||||
|
||||
autocmd BufWritePre *.sh,*.bash Shfmt
|
||||
augroup END
|
||||
|
||||
Reference in New Issue
Block a user