New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
json & yaml schemas #229
Comments
@ahmedelgabri |
@h-michael I tried a yaml file & a json file & this is the only thing I got in a clean log file.
|
@ahmedelgabri You should change settings like this. require'nvim_lsp'.jsonls.setup{
settings = {
json = {
schemas = {
{
description = 'TypeScript compiler configuration file',
fileMatch = {'tsconfig.json', 'tsconfig.*.json'},
url = 'http://json.schemastore.org/tsconfig'
},
{
description = 'Lerna config',
fileMatch = {'lerna.json'},
url = 'http://json.schemastore.org/lerna'
},
{
description = 'Babel configuration',
fileMatch = {'.babelrc.json', '.babelrc', 'babel.config.json'},
url = 'http://json.schemastore.org/lerna'
},
{
description = 'ESLint config',
fileMatch = {'.eslintrc.json', '.eslintrc'},
url = 'http://json.schemastore.org/eslintrc'
},
{
description = 'Bucklescript config',
fileMatch = {'bsconfig.json'},
url = 'https://bucklescript.github.io/bucklescript/docson/build-schema.json'
},
{
description = 'Prettier config',
fileMatch = {'.prettierrc', '.prettierrc.json', 'prettier.config.json'},
url = 'http://json.schemastore.org/prettierrc'
},
{
description = 'Vercel Now config',
fileMatch = {'now.json'},
url = 'http://json.schemastore.org/now'
},
{
description = 'Stylelint config',
fileMatch = {'.stylelintrc', '.stylelintrc.json', 'stylelint.config.json'},
url = 'http://json.schemastore.org/stylelintrc'
},
}
},
}
} And I don't have any errors with yaml-language-server. |
@h-michael this works, thanks! For |
I'm trying to migrate from
coc
& I have a couple of schemas for yaml & json but when I tried to migrate them, they don't look like they are being picked up.The text was updated successfully, but these errors were encountered: