1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:30:05 +08:00
SpaceVim/docs/layers/lang/vue.md

42 lines
945 B
Markdown
Raw Permalink Normal View History

2018-09-07 19:52:15 +08:00
---
title: "SpaceVim lang#vue layer"
2019-02-03 20:51:01 +08:00
description: "This layer adds Vue language support to SpaceVim"
2018-09-07 19:52:15 +08:00
---
# [Available Layers](../../) >> lang#vue
<!-- vim-markdown-toc GFM -->
- [Description](#description)
- [Installation](#installation)
- [Enable language layer](#enable-language-layer)
- [Language tools](#language-tools)
2018-09-07 19:52:15 +08:00
<!-- vim-markdown-toc -->
## Description
2019-02-03 20:51:01 +08:00
This layer adds Vue language support to SpaceVim. This layer includes plugin [vim-vue](https://github.com/posva/vim-vue).
2018-09-07 19:52:15 +08:00
## Installation
2018-09-07 19:52:15 +08:00
### Enable language layer
2018-09-07 19:52:15 +08:00
The `lang#vue` layer is not loaded by default, to use this layer,
you need to add following snippet into your spacevim configuration file.
2018-09-07 19:52:15 +08:00
```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
```