0.8.5 • Published 1 year ago

vls v0.8.5

Weekly downloads
2,512
License
MIT
Repository
github
Last release
1 year ago

Vue Language Server

VLS (Vue Language Server) is a language server implementation compatible with Language Server Protocol.

Vetur is the VS Code client consuming vls.

It's possible for other LSP compatible editors to build language server clients that consume vls.

Usage

There are two ways to integrate vls into editors:

  1. As a global executable.

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

    First, install VLS globally.

    npm install vls -g
    # or yarn global add vls

    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 vls as a local dependency.

    npm install vls --save
    # or yarn add vls

    Then, require the vls, this would typically look like:

    class VueLanguageClient extends AutoLanguageClient {
      startServerProcess () {
        return cp.spawn('node', [require.resolve('vls/dist/vueServerMain')])
      }
    }
  2. As extension of coc.nvim

    Install coc.nvim in your vim/neovim.

    Then, run vim command

    :CocInstall coc-vetur
0.8.5

1 year ago

0.8.4

1 year ago

0.8.3

1 year ago

0.8.2

2 years ago

0.8.1

2 years ago

0.8.0

2 years ago

0.7.6

3 years ago

0.7.5

3 years ago

0.7.4

3 years ago

0.7.3

3 years ago

0.7.2

3 years ago

0.7.1

3 years ago

0.7.0

3 years ago

0.6.4

3 years ago

0.6.3

3 years ago

0.6.2

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.5.10

3 years ago

0.5.9

3 years ago

0.5.8

3 years ago

0.5.7

3 years ago

0.5.6

3 years ago

0.5.5

4 years ago

0.5.4

4 years ago

0.5.3

4 years ago

0.5.2

4 years ago

0.5.0

4 years ago

0.5.1

4 years ago

0.4.1

4 years ago

0.4.2

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago