summaryrefslogtreecommitdiffstats
path: root/lua/user
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2022-03-15 16:20:18 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2022-03-15 16:20:18 +0100
commit2b26c97730c28541e994bff24a2640238f98e2c9 (patch)
tree6bb1c33489c564c6ad251e655a1da37287a50554 /lua/user
parent9a03ef48233d14fa660d7e2ab66dedef9db4a6d8 (diff)
downloadvim-2b26c97730c28541e994bff24a2640238f98e2c9.zip
vim-2b26c97730c28541e994bff24a2640238f98e2c9.tar.gz
lsp jsonls : return on error
Diffstat (limited to 'lua/user')
-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