Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including vue-language-server with all npm packages installed. Try it out:

var vueLanguageServer = require("vue-language-server")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

vue-language-server v0.0.60


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.


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

  1. As a global executable.

Example Client:

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.


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')])
  1. As extension of coc.nvim

Install coc.nvim in your vim/neovim.

Then, run vim command

:CocInstall coc-vetur
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free