From d7ca822d41bc65e31dc1019a64d5d3518c8e2470 Mon Sep 17 00:00:00 2001 From: Javier Tia Date: Wed, 26 Jul 2023 13:43:49 -0600 Subject: [PATCH] fix(yaml): yaml: Fix TypeError undefined length (#1229) In YAML files LSP completion is not happening because yaml-language-server is failing with error: TypeError: Cannot read properties of undefined (reading 'length') from out/server/src/languageserver/handlers/settingsHandlers.js:78:51, which it's expecting to have yaml.schemaStore.url.length and it's doesn't exist. Signed-off-by: Javier Tia --- lua/lazyvim/plugins/extras/lang/yaml.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/lazyvim/plugins/extras/lang/yaml.lua b/lua/lazyvim/plugins/extras/lang/yaml.lua index b097cdf6..52034664 100644 --- a/lua/lazyvim/plugins/extras/lang/yaml.lua +++ b/lua/lazyvim/plugins/extras/lang/yaml.lua @@ -38,6 +38,8 @@ return { -- Must disable built-in schemaStore support to use -- schemas from SchemaStore.nvim plugin enable = false, + -- Avoid TypeError: Cannot read properties of undefined (reading 'length') + url = "", }, }, },