Skip to content

Commit e5b1594

Browse files
committed
Mention the website of shfmt.
1 parent fe2ae42 commit e5b1594

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

autoload/codefmt/shfmt.vim

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ let s:plugin = maktaba#plugin#Get('codefmt')
2222
function! codefmt#shfmt#GetFormatter() abort
2323
let l:formatter = {
2424
\ 'name': 'shfmt',
25-
\ 'setup_instructions': 'Install shfmt and configure the ' .
26-
\ 'shfmt_executable flag'}
25+
\ 'setup_instructions': 'Install shfmt (https://github.com/mvdan/sh) ' .
26+
\ 'and configure the shfmt_executable flag'}
2727

2828
function l:formatter.IsAvailable() abort
2929
return executable(s:plugin.Flag('shfmt_executable'))
@@ -49,6 +49,8 @@ function! codefmt#shfmt#GetFormatter() abort
4949
\ string(l:Shfmt_options))
5050
endif
5151
" Hack range formatting by formatting range individually, ignoring context.
52+
" Feature request for range formatting:
53+
" https://github.com/mvdan/sh/issues/333
5254
let l:cmd = [ s:plugin.Flag('shfmt_executable') ] + l:shfmt_options
5355
call maktaba#ensure#IsNumber(a:startline)
5456
call maktaba#ensure#IsNumber(a:endline)

0 commit comments

Comments
 (0)