You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-1
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,10 @@ To be implemented:
25
25
26
26
### Dependencies
27
27
28
-
As a dependency, we recommend that you first install shellcheck [shellcheck][shellcheck] to enable linting: https://github.com/koalaman/shellcheck#installing . If shellcheck is installed, bash-language-server will automatically call it to provide linting and code analysis each time the file is updated (with debounce time of 500ms).
28
+
As a dependency, we recommend that you first install [shellcheck][shellcheck] to enable linting:
29
+
https://github.com/koalaman/shellcheck#installing . If `shellcheck` is installed,
30
+
bash-language-server will automatically call it to provide linting and code analysis each time the
31
+
file is updated (with debounce time of 500ms).
29
32
30
33
If you want your shell scripts to be formatted consistently, you can install [shfmt][shfmt]. If
31
34
`shfmt` is installed then your documents will be formatted whenever you take the 'format document'
@@ -185,6 +188,13 @@ Using the built-in `eglot` lsp mode:
185
188
(bash-ts-mode . eglot-ensure))
186
189
```
187
190
191
+
## `shfmt` integration
192
+
193
+
The indentation used by `shfmt` is whatever has been configured for the current editor session, so
194
+
there is no `shfmt`-specific configuration variable for this. If your editor is configured for
195
+
two-space indents then that's what it will use. If you're using tabs for indentation then `shfmt`
196
+
will use that.
197
+
188
198
## Logging
189
199
190
200
The minimum logging level for the server can be adjusted using the `BASH_IDE_LOG_LEVEL` environment variable
0 commit comments