sublimelsp / LSP-tailwindcss

Tailwind css support for Sublime's LSP plugin
MIT License
54 stars 5 forks source link

Disable suggestions #40

Closed AbeEstrada closed 2 years ago

AbeEstrada commented 2 years ago

Is there an option to disable the suggestions?

When I write classes it is very laggy for me, I want all the other options but the autocomplete/suggestions.

The server has the option tailwindCSS.suggestions, I forked the project and tried to add it but doesn't work. Obviously I have no idea how to send LSP settings to the server on Sublime Text. I hope you can point me to the right direction.

Thanks.

rchl commented 2 years ago

No need to fork anything. Just open Preferences: LSP-tailwindcss Settings and put this on the right side:

{
    "settings": {
        "tailwindCSS.suggestions": false,
    }
}

Alternatively use the client feature to disable completions which is even better as it will prevent from even asking the server for completions:

{
    "disabled_capabilities": {
        "completionProvider": true,
    }
}
AbeEstrada commented 2 years ago

Thank you

rchl commented 2 years ago

Note that tailwindCSS.suggestions is missing from the schema bundled with this package so it will result in a warning when using LSP-json. This is something that could be fixed.