vue-language-server is a language server implementation compatible with language-server-protocol.
Vetur is the VSCode 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:
Example Client: https://github.com/autozimu/LanguageClient-neovim
First, install VLS globally.
npm install vue-language-server -gThis 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'] \ }Example: https://github.com/HerringtonDarkholme/atom-vue
First, install vue-language-server as a local dependency.
npm install vue-language-server --saveThen, require the vue-language-server, this would typically look like: