Skip to content

Commit

Permalink
feat:keep parent_path use telescope builtin hl
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaogang committed Apr 21, 2024
1 parent b3c11e2 commit 2b95e54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/telescope/_extensions/file_browser/make_entry.lua
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ local make_entry = function(opts)
table.insert(widths, { width = filename_width })

if filename_width < file_width then
table.insert(display_array, entry.stat and { parent_path, hl } or { parent_path, "WarningMsg" })
-- parent_path keep a highlight group don't care other business
table.insert(display_array, { parent_path, hl })
table.insert(widths, { width = file_width - filename_width })
end
else
Expand Down

0 comments on commit 2b95e54

Please sign in to comment.