feat: add default hl group for devicons (#1849)
This commit is contained in:
@@ -496,7 +496,8 @@ 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.
|
Boolean if devicons should be enabled or not. If set to false, the
|
||||||
|
"TelescopeResultsFileIcon" highlight group is used.
|
||||||
Hint: Coloring only works if |termguicolors| is enabled.
|
Hint: Coloring only works if |termguicolors| is enabled.
|
||||||
|
|
||||||
Default: true
|
Default: true
|
||||||
|
|||||||
@@ -650,7 +650,8 @@ append(
|
|||||||
"color_devicons",
|
"color_devicons",
|
||||||
true,
|
true,
|
||||||
[[
|
[[
|
||||||
Boolean if devicons should be enabled or not.
|
Boolean if devicons should be enabled or not. If set to false, the
|
||||||
|
"TelescopeResultsFileIcon" highlight group is used.
|
||||||
Hint: Coloring only works if |termguicolors| is enabled.
|
Hint: Coloring only works if |termguicolors| is enabled.
|
||||||
|
|
||||||
Default: true]]
|
Default: true]]
|
||||||
|
|||||||
@@ -437,7 +437,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
|
return icon_display, "TelescopeResultsFileIcon"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
@@ -465,7 +465,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
|
return icon, "TelescopeResultsFileIcon"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -82,6 +82,7 @@ highlight default link TelescopeResultsIdentifier Identifier
|
|||||||
highlight default link TelescopeResultsNumber Number
|
highlight default link TelescopeResultsNumber Number
|
||||||
highlight default link TelescopeResultsComment Comment
|
highlight default link TelescopeResultsComment Comment
|
||||||
highlight default link TelescopeResultsSpecialComment SpecialComment
|
highlight default link TelescopeResultsSpecialComment SpecialComment
|
||||||
|
highlight default link TelescopeResultsFileIcon Normal
|
||||||
|
|
||||||
" Used for git status Results highlighting
|
" Used for git status Results highlighting
|
||||||
highlight default link TelescopeResultsDiffChange DiffChange
|
highlight default link TelescopeResultsDiffChange DiffChange
|
||||||
|
|||||||
Reference in New Issue
Block a user