Skip to content

Commit

Permalink
fix: add a white space betweent diagnostic source and code
Browse files Browse the repository at this point in the history
  • Loading branch information
LimbicSys committed Jan 20, 2024
1 parent 662437b commit 37c9764
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lua/lspsaga/diagnostic/show.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -225,6 +225,7 @@ local function msg_fmt(entry)
.. entry.bufnr
.. ' '
.. (entry.source and entry.source or '')
.. ' '
.. (entry.code and entry.code or '')
end

Expand Down

0 comments on commit 37c9764

Please sign in to comment.