vim-lsp-settings icon indicating copy to clipboard operation
vim-lsp-settings copied to clipboard

How can I enable this plugin's schema.json?

Open dbarnett opened this issue 4 years ago • 3 comments

Is there a way to configure a JSON schema for my vim-lsp-settings settings.json files? When I do e.g. :LspSettingsGlobalEdit and edit my JSON configs, it would be so helpful to have completions and inline help for the different config options.

dbarnett avatar Jan 07 '21 03:01 dbarnett

I was getting ready to draft up a JSON schema to send to schemastore and noticed there's a schema.json and local-schema.json in this repo. Is that for the same JSON settings structure, and is there a way to hook that up to be used for my settings.json files?

dbarnett avatar Jan 07 '21 03:01 dbarnett

@dbarnett Do you have json-languageserver installed?

:LspInstallServer json-languageserver

It is available when json-languageserver is installed.

vim-lsp-settings-schema

yaegassy avatar Jan 12 '21 08:01 yaegassy

Yep, this is with json-languageserver installed. I couldn't get it to show any smart suggestions or anything on settings.json, and it does for other JSON configs.

How is the detection supposed to work for those? Is there a custom fileMatch rule built into the plugin, or somewhere in the LS or schemastore already?

dbarnett avatar Jan 12 '21 15:01 dbarnett