fix: selected icon highlight with color_devicons to false (#2187)
This commit is contained in:
@@ -556,7 +556,7 @@ telescope.setup({opts}) *telescope.setup()*
|
|||||||
*telescope.defaults.color_devicons*
|
*telescope.defaults.color_devicons*
|
||||||
color_devicons: ~
|
color_devicons: ~
|
||||||
Boolean if devicons should be enabled or not. If set to false, the
|
Boolean if devicons should be enabled or not. If set to false, the
|
||||||
"TelescopeResultsFileIcon" highlight group is used.
|
text highlight group is used.
|
||||||
Hint: Coloring only works if |termguicolors| is enabled.
|
Hint: Coloring only works if |termguicolors| is enabled.
|
||||||
|
|
||||||
Default: true
|
Default: true
|
||||||
|
|||||||
@@ -665,7 +665,7 @@ append(
|
|||||||
true,
|
true,
|
||||||
[[
|
[[
|
||||||
Boolean if devicons should be enabled or not. If set to false, the
|
Boolean if devicons should be enabled or not. If set to false, the
|
||||||
"TelescopeResultsFileIcon" highlight group is used.
|
text highlight group is used.
|
||||||
Hint: Coloring only works if |termguicolors| is enabled.
|
Hint: Coloring only works if |termguicolors| is enabled.
|
||||||
|
|
||||||
Default: true]]
|
Default: true]]
|
||||||
|
|||||||
@@ -452,7 +452,7 @@ utils.transform_devicons = load_once(function()
|
|||||||
if conf.color_devicons then
|
if conf.color_devicons then
|
||||||
return icon_display, icon_highlight
|
return icon_display, icon_highlight
|
||||||
else
|
else
|
||||||
return icon_display, "TelescopeResultsFileIcon"
|
return icon_display, nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
@@ -480,7 +480,7 @@ utils.get_devicons = load_once(function()
|
|||||||
if conf.color_devicons then
|
if conf.color_devicons then
|
||||||
return icon, icon_highlight
|
return icon, icon_highlight
|
||||||
else
|
else
|
||||||
return icon, "TelescopeResultsFileIcon"
|
return icon, nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ local highlights = {
|
|||||||
TelescopeResultsNumber = { default = true, link = "Number" },
|
TelescopeResultsNumber = { default = true, link = "Number" },
|
||||||
TelescopeResultsComment = { default = true, link = "Comment" },
|
TelescopeResultsComment = { default = true, link = "Comment" },
|
||||||
TelescopeResultsSpecialComment = { default = true, link = "SpecialComment" },
|
TelescopeResultsSpecialComment = { default = true, link = "SpecialComment" },
|
||||||
TelescopeResultsFileIcon = { default = true, link = "Normal" },
|
|
||||||
|
|
||||||
-- Used for git status Results highlighting
|
-- Used for git status Results highlighting
|
||||||
TelescopeResultsDiffChange = { default = true, link = "DiffChange" },
|
TelescopeResultsDiffChange = { default = true, link = "DiffChange" },
|
||||||
|
|||||||
Reference in New Issue
Block a user