set_loclist update

neovim_0_5
ray-x 3 years ago
parent 5b2dcb7cd0
commit 1fa56d20a5

@ -13,7 +13,7 @@ local function definition_hdlr(err, _, locations, _, bufnr)
end
if type(locations) == "number" then
log(locations)
err("unable to handle request")
log("unable to handle request")
end
if locations == nil or vim.tbl_isempty(locations) then
print "Definition not found"

@ -4,7 +4,7 @@ local function set_keymap(...)
end
local event_hdlrs = {
{ev = "BufWritePre", func = "diagnostic.set_loclist({open_loclist = false})"},
{ev = "BufWritePre", func = "diagnostic.set_loclist({open = false})"},
{ev = "CursorHold", func = "document_highlight()"},
{ev = "CursorHoldI", func = "document_highlight()"},
{ev = "CursorMoved", func = "clear_references()"}

Loading…
Cancel
Save