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)
|
2021-10-01 23:23:09 +08:00
|
|
|
- [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
|
|
|
|
2021-10-01 23:23:09 +08:00
|
|
|
## Installation
|
2018-09-07 19:52:15 +08:00
|
|
|
|
2021-10-01 23:23:09 +08:00
|
|
|
### Enable language layer
|
2018-09-07 19:52:15 +08:00
|
|
|
|
2021-10-01 23:23:09 +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"
|
|
|
|
```
|
2021-10-01 23:23:09 +08:00
|
|
|
|
|
|
|
### 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
|
|
|
|
```
|