LSP-volar
Vue support for Sublime's LSP plugin
Details
Installs
- Total 1K
- Win 324
- Mac 473
- Linux 252
Jul 5 | Jul 4 | Jul 3 | Jul 2 | Jul 1 | Jun 30 | Jun 29 | Jun 28 | Jun 27 | Jun 26 | Jun 25 | Jun 24 | Jun 23 | Jun 22 | Jun 21 | Jun 20 | Jun 19 | Jun 18 | Jun 17 | Jun 16 | Jun 15 | Jun 14 | Jun 13 | Jun 12 | Jun 11 | Jun 10 | Jun 9 | Jun 8 | Jun 7 | Jun 6 | Jun 5 | Jun 4 | Jun 3 | Jun 2 | Jun 1 | May 31 | May 30 | May 29 | May 28 | May 27 | May 26 | May 25 | May 24 | May 23 | May 22 | May 21 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 1 | 0 | 0 | 0 | 2 | 0 | 3 | 1 | 1 | 2 | 0 | 8 | 7 | 0 | 5 | 10 | 1 | 0 | 1 | 2 | 4 | 5 | 1 | 2 | 3 | 2 | 2 | 4 | 7 | 2 | 1 | 1 | 3 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 4 | 4 | 2 | 2 | 1 | 0 |
Mac | 0 | 2 | 0 | 0 | 3 | 3 | 4 | 1 | 2 | 3 | 1 | 3 | 3 | 2 | 1 | 2 | 2 | 2 | 3 | 2 | 2 | 2 | 1 | 0 | 3 | 0 | 4 | 0 | 1 | 3 | 0 | 0 | 2 | 4 | 0 | 5 | 3 | 4 | 1 | 10 | 4 | 2 | 4 | 2 | 1 | 2 |
Linux | 0 | 0 | 1 | 2 | 0 | 1 | 0 | 4 | 2 | 0 | 0 | 0 | 4 | 0 | 1 | 1 | 2 | 1 | 0 | 3 | 0 | 3 | 0 | 2 | 1 | 0 | 1 | 2 | 1 | 2 | 1 | 1 | 0 | 0 | 1 | 5 | 0 | 2 | 0 | 3 | 2 | 0 | 0 | 3 | 1 | 2 |
Readme
- Source
- raw.githubusercontent.com
LSP-volar
This is a helper package that automatically installs and updates the Volar Language Server for you.
Installation
- Install LSP, Vue Syntax Highlight and LSP-volar from Package Control.
- Restart Sublime.
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.