summaryrefslogtreecommitdiffstats
path: root/lua/user/lsp
diff options
context:
space:
mode:
Diffstat (limited to 'lua/user/lsp')
-rw-r--r--lua/user/lsp/settings/jsonls.lua4
1 files changed, 3 insertions, 1 deletions
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