From 644edc8b2e2b5744133429d0185ecf46ea4ba250 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Fri, 30 May 2025 17:38:17 +0200 Subject: [PATCH] Use schemastore plugin for yamlls --- nvim/dot-config/nvim/lua/plugins/schemastore.lua | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/nvim/dot-config/nvim/lua/plugins/schemastore.lua b/nvim/dot-config/nvim/lua/plugins/schemastore.lua index f8f912d..ba4d13f 100644 --- a/nvim/dot-config/nvim/lua/plugins/schemastore.lua +++ b/nvim/dot-config/nvim/lua/plugins/schemastore.lua @@ -9,5 +9,15 @@ return { }, }, }) - end + + vim.lsp.config("yamlls", { + settings = { + yaml = { + -- Using the schemastore plugin for schemas. + schemastore = { enable = false, url = "" }, + schemas = require("schemastore").yaml.schemas(), + }, + }, + }) + end, }