From 2b26c97730c28541e994bff24a2640238f98e2c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 15 Mar 2022 16:20:18 +0100 Subject: lsp jsonls : return on error --- lua/user/lsp/settings/jsonls.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/user/lsp/settings/jsonls.lua b/lua/user/lsp/settings/jsonls.lua index 1fffa68..647be26 100644 --- a/lua/user/lsp/settings/jsonls.lua +++ b/lua/user/lsp/settings/jsonls.lua @@ -1,6 +1,8 @@ local default_schemas = nil local status_ok, jsonls_settings = pcall(require, "nlspsettings.jsonls") -if status_ok then +if not status_ok then + return +else default_schemas = jsonls_settings.get_default_schemas() end -- cgit v1.1-2-g2b99