@@ -29,6 +29,7 @@ M.INDENT_MARKER = "NeoTreeIndentMarker"
29
29
M .MODIFIED = " NeoTreeModified"
30
30
M .NORMAL = " NeoTreeNormal"
31
31
M .NORMALNC = " NeoTreeNormalNC"
32
+ M .SIGNCOLUMN = " NeoTreeSignColumn"
32
33
M .STATUS_LINE = " NeoTreeStatusLine"
33
34
M .STATUS_LINE_NC = " NeoTreeStatusLineNC"
34
35
M .VERTSPLIT = " NeoTreeVertSplit"
@@ -104,7 +105,7 @@ local function create_highlight_group(hl_group_name, link_to_if_exists, backgrou
104
105
end
105
106
106
107
local faded_highlight_group_cache = {}
107
- M .get_faded_highlight_group = function (hl_group_name , fade_percentage )
108
+ M .get_faded_highlight_group = function (hl_group_name , fade_percentage )
108
109
if type (hl_group_name ) ~= " string" then
109
110
error (" hl_group_name must be a string" )
110
111
end
@@ -177,7 +178,12 @@ M.get_faded_highlight_group = function (hl_group_name, fade_percentage)
177
178
local green = (f_green * fade_percentage ) + (b_green * (1 - fade_percentage ))
178
179
local blue = (f_blue * fade_percentage ) + (b_blue * (1 - fade_percentage ))
179
180
180
- local new_foreground = string.format (" %s%s%s" , dec_to_hex (red , 2 ), dec_to_hex (green , 2 ), dec_to_hex (blue , 2 ))
181
+ local new_foreground = string.format (
182
+ " %s%s%s" ,
183
+ dec_to_hex (red , 2 ),
184
+ dec_to_hex (green , 2 ),
185
+ dec_to_hex (blue , 2 )
186
+ )
181
187
182
188
create_highlight_group (key , {}, hl_group .background , new_foreground , gui )
183
189
faded_highlight_group_cache [key ] = key
@@ -188,6 +194,8 @@ M.setup = function()
188
194
local normal_hl = create_highlight_group (M .NORMAL , { " Normal" })
189
195
local normalnc_hl = create_highlight_group (M .NORMALNC , { " NormalNC" , M .NORMAL })
190
196
197
+ create_highlight_group (M .SIGNCOLUMN , { " SignColumn" , M .NORMAL })
198
+
191
199
create_highlight_group (M .STATUS_LINE , { " StatusLine" })
192
200
create_highlight_group (M .STATUS_LINE_NC , { " StatusLineNC" })
193
201
@@ -238,5 +246,4 @@ M.setup = function()
238
246
create_highlight_group (M .GIT_UNTRACKED , {}, nil , conflict .foreground , " italic" )
239
247
end
240
248
241
-
242
249
return M
0 commit comments