diff --git a/lua/user/lsp/settings/jsonls.lua b/lua/user/lsp/settings/jsonls.lua index 1fffa68..2ee88db 100644 --- a/lua/user/lsp/settings/jsonls.lua +++ b/lua/user/lsp/settings/jsonls.lua @@ -169,6 +169,9 @@ local schemas = { } local function extend(tab1, tab2) + if tab2 == nil then + return tab2 + end for _, value in ipairs(tab2) do table.insert(tab1, value) end diff --git a/lua/user/whichkey.lua b/lua/user/whichkey.lua index 994435f..f5520b1 100644 --- a/lua/user/whichkey.lua +++ b/lua/user/whichkey.lua @@ -143,7 +143,7 @@ local mappings = { i = { "LspInfo", "Info" }, I = { "LspInstallInfo", "Installer Info" }, j = { - "lua vim.lsp.diagnostic.goto_next()", + "lua vim.diagnostic.goto_next()", "Next Diagnostic", }, k = { @@ -151,7 +151,7 @@ local mappings = { "Prev Diagnostic", }, l = { "lua vim.lsp.codelens.run()", "CodeLens Action" }, - q = { "lua vim.lsp.diagnostic.set_loclist()", "Quickfix" }, + q = { "lua vim.diagnostic.setloclist()", "Quickfix" }, r = { "lua vim.lsp.buf.rename()", "Rename" }, s = { "Telescope lsp_document_symbols", "Document Symbols" }, S = {