作成:2021/05/15
更新:2022/05/07
jsonls
require("lspconfig")["jsonls"].setup({ filetypes = {"json", "jsonc"}, settings = { json = { schemas = { {fileMatch = {"package.json"}, url = "https://json.schemastore.org/package.json"}, {fileMatch = {"tsconfig*.json"}, url = "https://json.schemastore.org/tsconfig.json"}, } } },})
https://www.schemastore.org/api/json/catalog.json
www.schemastore.org
TypescriptToLua
TypeScriptToLua
typescripttolua.github.io
local catalog_data = require("schema-catalog")local schemas = catalog_data.schemasrequire("lspconfig")["jsonls"].setup({ filetypes = {"json", "jsonc"}, settings = { json = { schemas = schemas } },})