Skip to content

Commit

Permalink
feat: add wrap_long_lines option for diagnostic (#1372)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkhg authored Jan 5, 2024
1 parent 4e2b91c commit 544c228
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/lspsaga/diagnostic/show.lua
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ function sd:layout_normal()
['number'] = false,
['relativenumber'] = false,
['stc'] = '',
['wrap'] = diag_conf.wrap_long_lines
})
:wininfo()
api.nvim_win_set_height(self.winid, 10)
Expand Down Expand Up @@ -151,6 +152,7 @@ function sd:layout_float(opt)
:winopt({
['conceallevel'] = 2,
['concealcursor'] = 'niv',
['wrap'] = diag_conf.wrap_long_lines
})
:winhl('DiagnosticShowNormal', 'DiagnosticShowBorder')
:wininfo()
Expand Down
1 change: 1 addition & 0 deletions lua/lspsaga/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ local default_config = {
max_show_height = 0.6,
text_hl_follow = true,
border_follow = true,
wrap_long_lines = true,
extend_relatedInformation = false,
diagnostic_only_current = false,
keys = {
Expand Down

0 comments on commit 544c228

Please sign in to comment.