ctrl k
  • lua/plugins/schemastore.lua
    ■ ■ ■ ■ ■ ■
     1 +return {
     2 + "b0o/SchemaStore.nvim",
     3 + {
     4 + "AstroNvim/astrolsp",
     5 + opts = {
     6 + config = {
     7 + jsonls = {
     8 + on_new_config = function(config)
     9 + if not config.settings.json.schemas then config.settings.json.schemas = {} end
     10 + vim.list_extend(config.settings.json.schemas, require("schemastore").json.schemas())
     11 + end,
     12 + settings = { json = { validate = { enable = true } } },
     13 + },
     14 + yamlls = {
     15 + on_new_config = function(config)
     16 + config.settings.yaml.schemas =
     17 + vim.tbl_deep_extend("force", config.settings.yaml.schemas or {}, require("schemastore").yaml.schemas())
     18 + end,
     19 + settings = { yaml = { schemaStore = { enable = false, url = "" } } },
     20 + },
     21 + },
     22 + },
     23 + },
     24 +}
     25 + 
Please wait...
Page is in error, reload to recover