Fix warning in jsonls and whichkey

pull/152/head
Rohan Ghige 3 years ago
parent 6755f98df9
commit 0dbe9df716

@ -169,6 +169,9 @@ local schemas = {
} }
local function extend(tab1, tab2) local function extend(tab1, tab2)
if tab2 == nil then
return tab2
end
for _, value in ipairs(tab2) do for _, value in ipairs(tab2) do
table.insert(tab1, value) table.insert(tab1, value)
end end

@ -143,7 +143,7 @@ local mappings = {
i = { "<cmd>LspInfo<cr>", "Info" }, i = { "<cmd>LspInfo<cr>", "Info" },
I = { "<cmd>LspInstallInfo<cr>", "Installer Info" }, I = { "<cmd>LspInstallInfo<cr>", "Installer Info" },
j = { j = {
"<cmd>lua vim.lsp.diagnostic.goto_next()<CR>", "<cmd>lua vim.diagnostic.goto_next()<CR>",
"Next Diagnostic", "Next Diagnostic",
}, },
k = { k = {
@ -151,7 +151,7 @@ local mappings = {
"Prev Diagnostic", "Prev Diagnostic",
}, },
l = { "<cmd>lua vim.lsp.codelens.run()<cr>", "CodeLens Action" }, l = { "<cmd>lua vim.lsp.codelens.run()<cr>", "CodeLens Action" },
q = { "<cmd>lua vim.lsp.diagnostic.set_loclist()<cr>", "Quickfix" }, q = { "<cmd>lua vim.diagnostic.setloclist()<cr>", "Quickfix" },
r = { "<cmd>lua vim.lsp.buf.rename()<cr>", "Rename" }, r = { "<cmd>lua vim.lsp.buf.rename()<cr>", "Rename" },
s = { "<cmd>Telescope lsp_document_symbols<cr>", "Document Symbols" }, s = { "<cmd>Telescope lsp_document_symbols<cr>", "Document Symbols" },
S = { S = {

Loading…
Cancel
Save