Nutty Peanut Marshmallow
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

vue-language-server

0.0.33 • Public • Published

Vue Language Server

vue-language-server is a language server implementation compatible with language-server-protocol.

Vetur is the VS Code client consuming vue-language-server.

It's possible for other language-server-protocol compatible editors to build language server clients that consume VLS.

Usage

There are two ways to integrate vue-language-server into editors:

  1. As a global executable.

Example Client: https://github.com/autozimu/LanguageClient-neovim

First, install VLS globally.

npm install vue-language-server -g

This will provide you the global vls command.

Then, configure LanguageClient to use vls. In this example, we write below configuration into init.vim.

let g:LanguageClient_serverCommands = {
    \ 'vue': ['vls']
    \ }
  1. As a plugin dependency.

Example: https://github.com/HerringtonDarkholme/atom-vue

First, install vue-language-server as a local dependency.

npm install vue-language-server --save

Then, require the vue-language-server, this would typically look like:

class VueLanguageClient extends AutoLanguageClient {
  startServerProcess () {
    return cp.spawn('node', [require.resolve('vue-language-server/dist/htmlServerMain')])
  }
}

Keywords

none

install

npm i vue-language-server

Downloadsweekly downloads

219

version

0.0.33

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability