@@ -9,7 +9,7 @@ local icons = require "nvim-tree.renderer.components.icons"
9
9
--- @field private index number
10
10
--- @field private depth number
11
11
--- @field private highlights table[] hl_group , line , col_start , col_end arguments for vim.api.nvim_buf_add_highlight
12
- --- @field private combined_groups boolean [] combined group names
12
+ --- @field private combined_groups string [] combined group names
13
13
--- @field private lines string[] includes icons etc.
14
14
--- @field private markers boolean[] indent markers
15
15
--- @field private sign_names string[] line signs
@@ -273,7 +273,7 @@ function Builder:_create_combined_group(groups)
273
273
local combined_name = self :_combined_group_name (groups )
274
274
275
275
-- only create if necessary
276
- if not self .combined_groups [ combined_name ] then
276
+ if not vim . tbl_contains ( self .combined_groups , combined_name ) then
277
277
local combined_hl = {}
278
278
279
279
-- build the highlight, overriding values
@@ -286,7 +286,7 @@ function Builder:_create_combined_group(groups)
286
286
vim .api .nvim_set_hl_ns_fast (colors .NS_ID )
287
287
vim .api .nvim_set_hl (colors .NS_ID , combined_name , combined_hl )
288
288
289
- self .combined_groups [ combined_name ] = true
289
+ table.insert ( self .combined_groups , combined_name )
290
290
end
291
291
end
292
292
0 commit comments