No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 8556734 Oct 30, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Nov 15, 2017
LICENSE Initial commit Nov 15, 2017
README.md Add docs Jan 30, 2018
lsp-vue.el Fix <script> validation Oct 30, 2018

README.md

Vue.js support for lsp-mode using vls

Installation

First of all install vue-language-server

# with npm
npm install vue-language-server -g

# or with yarn
yarn global add vue-language-server

Install lsp-mode first, and either clone this repository. Add the following to your emacs configuration:

(require 'lsp-mode)
(require 'lsp-vue)
(add-hook 'vue-mode-hook #'lsp-vue-mmm-enable)

lsp-vue-mmm-enable depends on vue-mode and will enable flycheck for every major-mode supported by vue-mode.

Also you can enable lsp-vue for any needed major-mode with call of lsp-vue-enable or with hook like this

(add-hook 'major-mode-hook #'lsp-vue-enable)

Configuration

# with customize group

M-x customize-group RET lsp-vue # custom vetur and html configuration

# with lisp

(setq vetur.validation.template t)

see also: https://vuejs.github.io/vetur/