File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ let s:plugin = maktaba#plugin#Get('codefmt')
2222function ! 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 )
You can’t perform that action at this time.
0 commit comments