Skip to content

Commit

Permalink
fix: if grouping is off, decrease indent (#140)
Browse files Browse the repository at this point in the history
Co-authored-by: Hans <Hans@Hanss-MacBook-Pro.local>
  • Loading branch information
hanspinckaers and Hans committed Oct 14, 2022
1 parent ed09000 commit ed65f84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/trouble/renderer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ function renderer.render_diagnostics(view, text, items)
local indent = " "
if config.options.indent_lines then
indent = ""
elseif config.options.group == false then
indent = " "
end

local sign_hl = diag.sign_hl or ("TroubleSign" .. diag.type)
Expand Down

0 comments on commit ed65f84

Please sign in to comment.