mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:10:04 +08:00
docs(bash): update lang#sh
layer doc
close https://github.com/SpaceVim/SpaceVim/issues/4781
This commit is contained in:
parent
2679430878
commit
73a7242daa
@ -11,6 +11,7 @@ description: "Shell script development layer, provides autocompletion, syntax ch
|
||||
- [Features](#features)
|
||||
- [Install](#install)
|
||||
- [Layer](#layer)
|
||||
- [Layer options](#layer-options)
|
||||
- [Key bindings](#key-bindings)
|
||||
- [Language specific key bindings](#language-specific-key-bindings)
|
||||
|
||||
@ -42,6 +43,23 @@ To use this configuration layer, update your custom configuration file with:
|
||||
name = "lang#sh"
|
||||
```
|
||||
|
||||
## Layer options
|
||||
|
||||
- `bash_file_head`: Default file head when create new sh file.
|
||||
|
||||
By default, when create a new sh file, SpaceVim will insert file head automatically.
|
||||
to change the file head, use `bash_file_head` option:
|
||||
|
||||
```toml
|
||||
[[layers]]
|
||||
name = "lang#sh"
|
||||
bash_file_head = [
|
||||
'#!/usr/bin/env bash',
|
||||
'',
|
||||
''
|
||||
]
|
||||
```
|
||||
|
||||
## Key bindings
|
||||
|
||||
### Language specific key bindings
|
||||
|
Loading…
Reference in New Issue
Block a user