From 87dae0f25733b7bd79b600a70ca38040db68ec0b Mon Sep 17 00:00:00 2001 From: Steven Arcangeli Date: Tue, 24 Dec 2024 21:04:32 -0500 Subject: [PATCH] fix: highlights when trim_leading_whitespace = 'all' --- lua/quicker/display.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/quicker/display.lua b/lua/quicker/display.lua index b53092d..4f2fc3a 100644 --- a/lua/quicker/display.lua +++ b/lua/quicker/display.lua @@ -210,6 +210,9 @@ local function add_item_highlights_from_buf(qfbufnr, item, line, lnum) offset = offset - prefix:len() end offset = offset - src_space + item_space + if config.trim_leading_whitespace == "all" then + offset = offset - item_space + end -- Add treesitter highlights if config.highlight.treesitter then