1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 02:10:05 +08:00
SpaceVim/docs/layers/lang/sh.md

53 lines
1.3 KiB
Markdown
Raw Normal View History

---
title: "SpaceVim lang#sh layer"
2021-06-21 20:39:29 +08:00
description: "Shell script development layer, provides autocompletion, syntax checking, and code formatting for bash and zsh scripts."
---
# [Available Layers](../../) >> lang#sh
<!-- vim-markdown-toc GFM -->
- [Description](#description)
- [Features](#features)
- [Install](#install)
- [Layer](#layer)
- [Key bindings](#key-bindings)
- [Language specific key bindings](#language-specific-key-bindings)
<!-- vim-markdown-toc -->
## Description
2021-06-21 20:39:29 +08:00
This layer is for shell script development. Shell script includes bash, zsh and fish scripts.
## Features
- Code completion
- Syntax highlighting and indent
- Syntax checking
- Code formatting
- Jump to declaration
2019-02-03 20:51:01 +08:00
SpaceVim also provides language server protocol support for bash script. To enable language server protocol
for bash script, you need to load `lsp` layer for bash.
## Install
### Layer
2021-06-21 20:39:29 +08:00
To use this configuration layer, update your custom configuration file with:
```toml
[[layers]]
name = "lang#sh"
```
## Key bindings
### Language specific key bindings
2021-06-21 20:39:29 +08:00
| Key Bindings | Descriptions |
| --------------- | --------------------------------------- |
| `SPC l d` / `K` | Show doc of the symbol under the cursor |
| `g d` | Jump to definition |