pull/246/head
ray-x 2 years ago
parent 3f4ae62846
commit b4aaf5bf77

@ -5,7 +5,7 @@
debug = debug or nil
local nvim_0_6 = false
local vfn = vim.fn
if debug.getinfo(vim.lsp.handlers["textDocument/publishDiagnostics"]).nparams == 4 then
if debug.getinfo(vim.lsp.handlers['textDocument/publishDiagnostics']).nparams == 4 then
nvim_0_6 = true
end
@ -15,7 +15,7 @@ local function hdlr(result)
local s = result.uri
local fname = s
for _, v in ipairs(result.diagnostics) do
local _, j = string.find(s, "file://")
local _, j = string.find(s, 'file://')
if j then
fname = string.sub(s, j + 1)
end
@ -32,7 +32,7 @@ local function hdlr(result)
table.insert(item_list, old_item)
end
end
vfn.setqflist({}, " ", { title = "LSP", items = item_list })
vfn.setqflist({}, ' ', { title = 'LSP', items = item_list })
end
end
local diag_hdlr_0_5 = function(err, result, ctx, config)

@ -111,7 +111,7 @@ local show_panel = function(result, pkg, rerender)
header = '   ' .. pkg_name .. '',
render = function(b)
log('render for ', bufnr, b)
log(debug.traceback())
-- log(debug.traceback())
-- outline("-r")
render()
return defs

Loading…
Cancel
Save