Skip to content
This repository was archived by the owner on Jul 6, 2021. It is now read-only.

Display error in loclist instead of line #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lua/diagnostic/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function M.locations_to_items(locations)
local fname = api.nvim_buf_get_name(0)
for _, d in ipairs(locations) do
local range = d.range or d.targetSelectionRange
table.insert(grouped[fname], {start = range.start})
table.insert(grouped[fname], {start = range.start, message = d.message})
end


Expand All @@ -160,7 +160,7 @@ function M.locations_to_items(locations)
bufnr = bufnr,
lnum = row + 1,
col = col + 1;
text = line
text = temp.message
})
end
end
Expand Down