1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-31 11:10:04 +08:00
SpaceVim/docs/layers/lang/vue.md
Shidong Wang e33aeb1b00
fix(layer): add :h SpaceVim-layers-lang-vue
Problem: failed to lint vue file.
Solution:
1. change eslint-plugin-html to eslint-plugin-vue
2. update vue layer page
3. add `:h SpaceVim-layers-lang-vue`

close https://github.com/SpaceVim/SpaceVim/issues/4488
2021-10-01 23:23:09 +08:00

42 lines
945 B
Markdown

---
title: "SpaceVim lang#vue layer"
description: "This layer adds Vue language support to SpaceVim"
---
# [Available Layers](../../) >> lang#vue
<!-- vim-markdown-toc GFM -->
- [Description](#description)
- [Installation](#installation)
- [Enable language layer](#enable-language-layer)
- [Language tools](#language-tools)
<!-- vim-markdown-toc -->
## Description
This layer adds Vue language support to SpaceVim. This layer includes plugin [vim-vue](https://github.com/posva/vim-vue).
## Installation
### Enable language layer
The `lang#vue` layer is not loaded by default, to use this layer,
you need to add following snippet into your spacevim configuration file.
```toml
[[layers]]
name = "lang#vue"
```
### Language tools
- **syntax checking:**
`checker` layer provides syntax checking feature, and for vue it uses the `eslint` and `eslint-plugin-vue` package:
```sh
npm install -g eslint eslint-plugin-vue
```