From 64b9a865a98db2b4d66da67f66b6f861a04f4573 Mon Sep 17 00:00:00 2001 From: Lukas Reineke Date: Mon, 9 Nov 2020 12:17:36 +0900 Subject: [PATCH] Display error in loclist instead of line fixes #67 --- lua/diagnostic/util.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/diagnostic/util.lua b/lua/diagnostic/util.lua index cd6a7fb..92b9b91 100644 --- a/lua/diagnostic/util.lua +++ b/lua/diagnostic/util.lua @@ -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 @@ -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