From 7f31065fce89cca492c21c8bd73c74aa9f9432b2 Mon Sep 17 00:00:00 2001 From: Jethro Shuwen Sun Date: Mon, 15 Apr 2019 09:36:18 -0400 Subject: improve the lsp diagnostic message format (#2425) --- autoload/ale/lsp/response.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'autoload') diff --git a/autoload/ale/lsp/response.vim b/autoload/ale/lsp/response.vim index b91d875b..9ce05260 100644 --- a/autoload/ale/lsp/response.vim +++ b/autoload/ale/lsp/response.vim @@ -28,7 +28,7 @@ function! ale#lsp#response#ReadDiagnostics(response) abort for l:diagnostic in a:response.params.diagnostics let l:severity = get(l:diagnostic, 'severity', 0) let l:loclist_item = { - \ 'text': l:diagnostic.message, + \ 'text': substitute(l:diagnostic.message, '\(\r\n\|\n\|\r\)', ' ', 'g'), \ 'type': 'E', \ 'lnum': l:diagnostic.range.start.line + 1, \ 'col': l:diagnostic.range.start.character + 1, -- cgit v1.2.3