sublimelsp / LSP-volar

Vue support for Sublime's LSP plugin
MIT License
84 stars 8 forks source link

Add support for inlay hints LSP-volar #113

Closed predragnikolic closed 2 years ago

predragnikolic commented 2 years ago

Inlay hints need to be implemented in the LSP repo in order for this to work.

predragnikolic commented 2 years ago

If you want to quickly try it out with LSP-volar, here are the settings.

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

{
    "selector": "text.html.vue | source.ts",
    "settings": {
        "typescript.inlayHints.parameterNames.enabled": "all",
        "typescript.inlayHints.parameterNames.suppressWhenArgumentMatchesName": true,
        "typescript.inlayHints.parameterTypes.enabled": true,
        "typescript.inlayHints.variableTypes.enabled": true,
        "typescript.inlayHints.propertyDeclarationTypes.enabled": true,
        "typescript.inlayHints.functionLikeReturnTypes.enabled": true,
        "typescript.inlayHints.enumMemberValues.enabled": true
    }
}