Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: show better diagnostic message #1383

Merged
merged 2 commits into from
Jan 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/lspsaga.nvim.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*lspsaga.nvim.txt* For Nvim 0.8.0 Last change: 2024 January 05
*lspsaga.nvim.txt* For Nvim 0.8.0 Last change: 2024 January 20

==============================================================================
Table of Contents *lspsaga.nvim-table-of-contents*
Expand Down
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
Loading