Sublime Forum

Disable LSP as-you-type documentation

#1

I have LSP turned on for several languages, and on the whole it’s great. But one thing that really gets in my way is the super verbose documentation which shows up as you type, and obscures most of the rest of the file. Example:

What is this called, and how do I turn it off? I tried adding "show_inlay_hints": false to LSP.sublime-settings, but the inline docs are still showing up. I may be OK to see the docs when I hover my mouse over a function… although, it would be nice to know how to toggle that setting as well so I can try both.

0 Likes

#2

This feature is called “signature help”. You can disable it with

{
    "disabled_capabilities": {
        "signatureHelpProvider": true
    }
}

in the settings for the server that you use (for example in LSP-pyright.sublime-settings if you use the Pyright helper package).

2 Likes

#3

That seems to have worked. Thanks very much! For anyone looking for more info on this, here are the docs, including a link to the MS LSP documentation which lists other features which you can disable if desired.

1 Like

#4

Thank you very much @jwortmann and @nk9
For others’ future reference, the signature help popup can be left active, but its trigger characters deactivated, as per @jwortmann answer here, by adding the following to your server settings (e.g., Preferences -> Package Settings -> LSP -> Servers -> LSP-Pyright)

{
    "disabled_capabilities": {
        "signatureHelpProvider": {
            "triggerCharacters": true,
            "retriggerCharacters": true
        }
    }
}

and then it can be triggered on demand via ctrl alt space (on Linux at least) as listed here

0 Likes