1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:40:06 +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

945 B

title description
SpaceVim lang#vue layer This layer adds Vue language support to SpaceVim

Available Layers >> lang#vue

Description

This layer adds Vue language support to SpaceVim. This layer includes plugin 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.

[[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:

    npm install -g eslint eslint-plugin-vue