File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,11 @@ function Builder:configure_opened_file_highlighting(highlight_opened_files)
54
54
return self
55
55
end
56
56
57
+ function Builder :configure_modified_highlighting (highlight_modified )
58
+ self .highlight_modified = highlight_modified
59
+ return self
60
+ end
61
+
57
62
function Builder :configure_icon_padding (padding )
58
63
self .icon_padding = padding or " "
59
64
return self
@@ -243,10 +248,10 @@ function Builder:_get_highlight_override(node, unloaded_bufnr)
243
248
-- modified file
244
249
local modified_highlight = modified .get_highlight (node )
245
250
if modified_highlight then
246
- if self .highlight_opened_files == " all" or self .highlight_opened_files == " name" then
251
+ if self .highlight_modified == " all" or self .highlight_modified == " name" then
247
252
name_hl = modified_highlight
248
253
end
249
- if self .highlight_opened_files == " all" or self .highlight_opened_files == " icon" then
254
+ if self .highlight_modified == " all" or self .highlight_modified == " icon" then
250
255
icon_hl = modified_highlight
251
256
end
252
257
end
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ function M.draw(unloaded_bufnr)
71
71
:configure_special_files (M .config .special_files )
72
72
:configure_picture_map (picture_map )
73
73
:configure_opened_file_highlighting (M .config .highlight_opened_files )
74
+ :configure_modified_highlighting (M .config .highlight_modified )
74
75
:configure_icon_padding (M .config .icons .padding )
75
76
:configure_git_icons_placement (M .config .icons .git_placement )
76
77
:configure_modified_placement (M .config .icons .modified_placement )
You can’t perform that action at this time.
0 commit comments