From 8dfc74cba27e4d3dd94f61b3a86df04e082e7007 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Tue, 19 Sep 2023 16:10:41 +0200 Subject: [PATCH] Update flake8 parsing --- lua/lsp/config/diagnosticls.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/lsp/config/diagnosticls.lua b/lua/lsp/config/diagnosticls.lua index 7a59b6b..cede5a9 100644 --- a/lua/lsp/config/diagnosticls.lua +++ b/lua/lsp/config/diagnosticls.lua @@ -57,11 +57,11 @@ return { sourceName = "flake8", formatLines = 1, formatPattern = { - [[(\d+),(\d+),([A-Z]),(.*)(\r|\n)*$]], - { line = 1, column = 2, security = 3, message = { 4, }, }, + [[^(\d+),(\d+),([A-Z]),(.*): (.*)]], + { line = 1, column = 2, security = 3, message = { 5, }, }, }, securities = { - -- Available securities are { 'error', 'warning', 'hint', 'info' } + -- Available securities are { 'error', 'warning', 'hin', 'info' } E = "error", W = "warning", B = "hint",