Sublime Forum

Add awareness of plugin settings in Project settings

#1

How would I go about making auto-completion show up for my plugin settings in the project settings window?
I get auto-completion for LSP settings for example, but I can’t figure out how that is acheived.
Any advice would be appreciated!

cheers,

Shea.

0 Likes

#2

LSP-json picks up the
sublime-package.json (json schema) file for autocompletion.

For example, the one you see is defined in https://github.com/sublimelsp/LSP/blob/main/sublime-package.json

0 Likes

#3

Example for a dependency that only contributes to Packages/User/Preferences.sublime-settings: https://github.com/facelessuser/sublime-markdown-popups/blob/master/st3/mdpopups/sublime-package.json

Smaller example: https://github.com/sublimelsp/LSP-volar/blob/master/sublime-package.json

0 Likes

#4

And the schema for these kind of json files here: https://github.com/sublimelsp/LSP-json/blob/master/schemas/sublime-package-schema.json

0 Likes

#5

Thank you all for the replies - super speedy and super helpful!
The plugin I was modifying does not have a sublime-package.json file so I will add one and go from there :slight_smile:

0 Likes