Skip to content

Commit

Permalink
Add jsonls template for Clasp stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasvianav committed Jun 19, 2022
1 parent 6cc1b05 commit 92d8998
Showing 1 changed file with 49 additions and 38 deletions.
87 changes: 49 additions & 38 deletions lua/v/plugins/lsp/servers/jsonls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,44 +3,55 @@ local M = {}
M.filetypes = { 'json', 'jsonc' }

M.settings = {
json = {
-- 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 = {"angular.json"},
url = "https://raw.githubusercontent.com/angular/angular-cli/master/packages/angular/cli/lib/config/workspace-schema.json"
},
{
fileMatch = {".angular-cli.json"},
url = "https://raw.githubusercontent.com/angular/angular-cli/v10.1.6/packages/angular/cli/lib/config/schema.json"
},
}
}
json = {
-- 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 = { 'angular.json' },
url = 'https://raw.githubusercontent.com/angular/angular-cli/master/packages/angular/cli/lib/config/workspace-schema.json',
},
{
fileMatch = { '.angular-cli.json' },
url = 'https://raw.githubusercontent.com/angular/angular-cli/v10.1.6/packages/angular/cli/lib/config/schema.json',
},
{
fileMatch = { 'appsscript.json' },
url = 'http://json.schemastore.org/appsscript',
},
{
fileMatch = { '.clasp.json' },
url = 'http://json.schemastore.org/clasp',
},
},
},
}

return M

0 comments on commit 92d8998

Please sign in to comment.