nvim/lua/cosmic/lsp/providers/jsonls.lua
Matt Leong a9cbaf7802 Init 🚀
2021-10-19 15:25:18 -07:00

49 lines
1.3 KiB
Lua

return {
settings = {
json = {
-- Schemas https://www.schemastore.org
schemas = {
{
fileMatch = { 'package.json' },
url = 'https://json.schemastore.org/package.json',
},
{
fileMatch = { 'tsconfig*.json' },
url = 'https://json.schemastore.org/tsconfig.json',
},
{
fileMatch = {
'.prettierrc',
'.prettierrc.json',
'prettier.config.json',
},
url = 'https://json.schemastore.org/prettierrc.json',
},
{
fileMatch = { '.eslintrc', '.eslintrc.json' },
url = 'https://json.schemastore.org/eslintrc.json',
},
{
fileMatch = { '.babelrc', '.babelrc.json', 'babel.config.json' },
url = 'https://json.schemastore.org/babelrc.json',
},
{
fileMatch = { 'lerna.json' },
url = 'https://json.schemastore.org/lerna.json',
},
{
fileMatch = { 'now.json', 'vercel.json' },
url = 'https://json.schemastore.org/now.json',
},
{
fileMatch = {
'.stylelintrc',
'.stylelintrc.json',
'stylelint.config.json',
},
url = 'http://json.schemastore.org/stylelintrc.json',
},
},
},
},
}