Socket
Socket
Sign inDemoInstall

vue-language-server

Package Overview
Dependencies
Maintainers
2
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-language-server

vue-language-server


Version published
Weekly downloads
205
decreased by-35.74%
Maintainers
2
Weekly downloads
 
Created
Source

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

Install coc.nvim in your vim/neovim.

Then, run vim command

:CocInstall coc-vetur

FAQs

Package last updated on 12 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc