Skip to content
No description, website, or topics provided.
Emacs Lisp
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
lsp-vue.el

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/

You can’t perform that action at this time.