LSP-vue
Vue support for Sublime's LSP plugin
Details
Installs
- Total 11K
- Win 5K
- Mac 4K
- Linux 3K
| Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | Mar 3 | Mar 2 | Mar 1 | Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | Feb 22 | Feb 21 | Feb 20 | Feb 19 | Feb 18 | Feb 17 | Feb 16 | Feb 15 | Feb 14 | Feb 13 | Feb 12 | Feb 11 | Feb 10 | Feb 9 | Feb 8 | Feb 7 | Feb 6 | Feb 5 | Feb 4 | Feb 3 | Feb 2 | Feb 1 | Jan 31 | Jan 30 | Jan 29 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 1 | 1 | 1 | 1 | 4 | 1 | 1 | 1 | 1 | 3 | 1 | 1 | 1 | 3 | 1 | 6 | 0 | 1 | 2 | 1 | 1 | 0 | 1 | 1 | 3 | 1 | 2 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 1 | 2 | 1 | 4 |
| Mac | 1 | 0 | 2 | 2 | 2 | 0 | 0 | 0 | 1 | 1 | 2 | 4 | 0 | 0 | 1 | 0 | 0 | 1 | 2 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 2 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 2 | 1 | 4 | 1 | 1 | 0 | 3 | 0 |
| Linux | 0 | 2 | 2 | 0 | 1 | 0 | 3 | 0 | 0 | 1 | 2 | 0 | 0 | 0 | 0 | 0 | 2 | 2 | 1 | 2 | 1 | 0 | 2 | 0 | 2 | 0 | 1 | 1 | 3 | 0 | 1 | 0 | 1 | 0 | 2 | 1 | 1 | 1 | 0 | 3 | 1 | 0 | 2 | 1 | 3 | 0 |
Readme
- Source
- raw.githubusercontent.com
LSP-vue
This is a helper package that automatically installs and updates the Vue Language Server (formerly Volar) for you.
Table of Contents
Installation
- Install from Package Control:
- Restart Sublime.
[!NOTE] Make sure that
LSP-typescriptis installed - it's a required dependency.
Configuration
Open the configuration file using Command Palette with Preferences: LSP-vue Settings command or opening it from the Sublime menu (Preferences > Package Settings > LSP > Servers > LSP-vue).
Semantic Tokens
Server assigns a dedicated entity.name.tag.vue scope to component tags which allows one to customize their color. To customize, select UI: Customize Color Scheme from the Command Palette and add a rule like the following (with your chosen color):
{
// ...
"rules": [
// ...
{
"scope": "entity.name.tag.vue",
"foreground": "color(var(blue))",
},
],
}
Inlay hints
Inlay hints are short textual annotations that show parameter names, type hints.
To enable inlay hints:
1. Open the command palette and select Preferences: LSP Settings, then enable show_inlay_hints:
“js
{
"show_inlay_hints”: true
}
2. Modify the following settings through `Preferences: LSP-vue Settings`:
```js
{
"settings": {
// javascript inlay hints options.
"javascript.inlayHints.enumMemberValues.enabled": false,
"javascript.inlayHints.functionLikeReturnTypes.enabled": false,
"javascript.inlayHints.parameterNames.enabled": "none",
"javascript.inlayHints.parameterNames.suppressWhenArgumentMatchesName": false,
"javascript.inlayHints.parameterTypes.enabled": false,
"javascript.inlayHints.propertyDeclarationTypes.enabled": false,
"javascript.inlayHints.variableTypes.enabled": false,
// typescript inlay hints options.
"typescript.inlayHints.enumMemberValues.enabled": false,
"typescript.inlayHints.functionLikeReturnTypes.enabled": false,
"typescript.inlayHints.parameterNames.enabled": "none",
"typescript.inlayHints.parameterNames.suppressWhenArgumentMatchesName": false,
"typescript.inlayHints.parameterTypes.enabled": false,
"typescript.inlayHints.propertyDeclarationTypes.enabled": false,
"typescript.inlayHints.variableTypes.enabled": false,
}
}
NOTE: Inlay hints require TypeScript 4.4+.