LSP-vue
Vue support for Sublime's LSP plugin
Details
Installs
- Total 10K
- Win 4K
- Mac 3K
- Linux 3K
Oct 8 | Oct 7 | Oct 6 | Oct 5 | Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | Sep 16 | Sep 15 | Sep 14 | Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 2 | 0 | 2 | 2 | 0 | 1 | 1 | 1 | 2 | 2 | 2 | 1 | 1 | 2 | 0 | 2 | 1 | 4 | 0 | 3 | 2 | 1 | 1 | 2 | 0 | 2 | 4 | 1 | 1 | 0 | 3 | 0 | 0 | 1 | 5 | 1 | 2 | 2 | 3 | 2 | 4 | 6 | 1 | 1 | 2 | 3 |
Mac | 1 | 0 | 0 | 0 | 0 | 1 | 3 | 0 | 0 | 2 | 0 | 1 | 2 | 1 | 3 | 0 | 1 | 2 | 1 | 1 | 2 | 2 | 2 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 3 | 1 | 1 | 0 | 2 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 0 | 2 | 0 | 1 |
Linux | 1 | 6 | 2 | 2 | 4 | 1 | 0 | 1 | 3 | 2 | 0 | 0 | 0 | 2 | 2 | 2 | 5 | 1 | 1 | 0 | 1 | 0 | 3 | 3 | 0 | 3 | 0 | 2 | 1 | 1 | 0 | 1 | 2 | 1 | 0 | 3 | 1 | 2 | 3 | 1 | 2 | 2 | 1 | 4 | 0 | 2 |
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-typescript
is 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+.