From b948407ec190ba176b661f7a4440ebb26b95791a Mon Sep 17 00:00:00 2001 From: Oliver Ladner Date: Thu, 4 Dec 2025 15:45:29 +0100 Subject: [PATCH] feat(yaml): use schema store --- lsp/yaml.lua | 7 +++++++ lua/weeheavy/plugins/schemastore.lua | 4 ++++ 2 files changed, 11 insertions(+) create mode 100644 lua/weeheavy/plugins/schemastore.lua diff --git a/lsp/yaml.lua b/lsp/yaml.lua index cf43b9e..597d3ce 100644 --- a/lsp/yaml.lua +++ b/lsp/yaml.lua @@ -2,4 +2,11 @@ return { filetypes = { "yaml" }, cmd = { "yaml-language-server", "--stdio" }, + settings = { + yaml = { + -- Using the schemastore plugin for schemas. + schemastore = { enable = false, url = "" }, + schemas = require("schemastore").yaml.schemas(), + }, + }, } diff --git a/lua/weeheavy/plugins/schemastore.lua b/lua/weeheavy/plugins/schemastore.lua new file mode 100644 index 0000000..336fb19 --- /dev/null +++ b/lua/weeheavy/plugins/schemastore.lua @@ -0,0 +1,4 @@ +-- JSON/YAML schemas. +return { + { "b0o/SchemaStore.nvim", lazy = true }, +}