From 37c9764b470db17d7accdc2a9af638001c6189ae Mon Sep 17 00:00:00 2001 From: LimbicSys <30319215+LimbicSys@users.noreply.github.com> Date: Sat, 20 Jan 2024 16:45:15 +0800 Subject: [PATCH] fix: add a white space betweent diagnostic source and code --- lua/lspsaga/diagnostic/show.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/lspsaga/diagnostic/show.lua b/lua/lspsaga/diagnostic/show.lua index ed1fe5f02..bcc1606cb 100644 --- a/lua/lspsaga/diagnostic/show.lua +++ b/lua/lspsaga/diagnostic/show.lua @@ -84,7 +84,7 @@ function sd:layout_normal() ['number'] = false, ['relativenumber'] = false, ['stc'] = '', - ['wrap'] = diag_conf.wrap_long_lines + ['wrap'] = diag_conf.wrap_long_lines, }) :wininfo() api.nvim_win_set_height(self.winid, 10) @@ -152,7 +152,7 @@ function sd:layout_float(opt) :winopt({ ['conceallevel'] = 2, ['concealcursor'] = 'niv', - ['wrap'] = diag_conf.wrap_long_lines + ['wrap'] = diag_conf.wrap_long_lines, }) :winhl('DiagnosticShowNormal', 'DiagnosticShowBorder') :wininfo() @@ -225,6 +225,7 @@ local function msg_fmt(entry) .. entry.bufnr .. ' ' .. (entry.source and entry.source or '') + .. ' ' .. (entry.code and entry.code or '') end