Skip to content

Commit

Permalink
Update sh.vim (#26)
Browse files Browse the repository at this point in the history
Use shiftwidth for setting indent in bash files.
  • Loading branch information
alok authored and sbdchd committed Jan 9, 2017
1 parent ed7d2ca commit 1c99d92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions autoload/neoformat/formatters/sh.vim
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ endfunction
function! neoformat#formatters#sh#shfmt() abort
return {
\ 'exe': 'shfmt',
\ 'args': ['-i ' . shiftwidth()],
\ 'stdin': 1,
\ }
endfunction

0 comments on commit 1c99d92

Please sign in to comment.