ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

LSP-volar

by sublimelsp ST3

Vue support for Sublime's LSP plugin

Details

Installs

  • Total 371
  • Win 109
  • Mac 185
  • Linux 77
Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14
Windows 0 3 1 1 2 1 1 0 2 2 0 1 0 0 1 1 0 0 0 0 1 2 4 2 1 0 1 0 2 2 3 1 0 0 0 0 0 0 2 1 1 0 1 0 1 2
Mac 0 4 2 7 2 1 0 1 0 4 1 1 3 1 1 0 0 2 2 0 1 1 1 0 1 2 1 0 0 4 1 0 3 0 0 0 3 3 2 2 0 0 1 1 3 1
Linux 0 2 2 1 0 0 1 0 0 1 1 0 0 0 0 0 0 0 1 0 0 0 1 3 2 0 1 1 0 0 3 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

LSP-volar

This is a helper package that automatically installs and updates the Volar Language Server for you.

Installation

Configuration

Open configuration file using command palette with Preferences: LSP-volar Settings command or opening it from the Sublime menu (Preferences > Package Settings > LSP > Servers > LSP-volar).

Enable for non-Vue files

Allow LSP-volar to start in *.ts | *.tsx | *.js | *.jsx files.

Per project:

Create a sublime project file with the following contents:

{
    "folders":
    [
        {
            "path": "."
        }
    ],
    "settings": {
        "LSP": {
            "LSP-volar": {
                "selector": "text.html.vue | source.ts | source.tsx | source.js | source.jsx"
            },
            "LSP-typescript": {
                "enabled": false
            }
        }
    }
}

Globally:

From the command palette select Preferences: LSP-volar Settings and paste the following:

// Settings in here override those in "LSP-volar/LSP-volar.sublime-settings"

{
    "selector": "text.html.vue | source.ts | source.tsx | source.js | source.jsx"
}

NOTE: When enabling LSP-volar for non-Vue files, it is advisable to disable the LSP-typescript package to avoid showing duplicate results.