From 79a2dc2d8a6e1644e9c8e648f9c0e417d5400097 Mon Sep 17 00:00:00 2001 From: w0rp Date: Sat, 9 Sep 2023 00:10:27 +0100 Subject: #4442 Display error codes in Neovim diagnostics --- lua/diagnostics.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/diagnostics.lua b/lua/diagnostics.lua index 55b50d6a..21f81e2a 100644 --- a/lua/diagnostics.lua +++ b/lua/diagnostics.lua @@ -41,6 +41,8 @@ module.sendAleResultsToDiagnostics = function(buffer, loclist) end_col = location.end_col, -- Which severity: error, warning, or info? severity = ale_type_to_diagnostic_severity[location.type] or "E", + -- An error code + code = location.code, -- The error message message = location.text, -- e.g. "rubocop" -- cgit v1.2.3