summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2023-09-09 00:10:27 +0100
committerw0rp <devw0rp@gmail.com>2023-09-09 00:10:27 +0100
commit79a2dc2d8a6e1644e9c8e648f9c0e417d5400097 (patch)
tree7669ba4efd2dd15cc4e249f765011713ff984c00
parente4411276a5fd5683a4e78bbd3280c4479fed346d (diff)
downloadale-79a2dc2d8a6e1644e9c8e648f9c0e417d5400097.zip
#4442 Display error codes in Neovim diagnostics
-rw-r--r--lua/diagnostics.lua2
1 files changed, 2 insertions, 0 deletions
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"