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*
|
||||
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.
|
||||
|
||||
Default: true
|
||||
|
||||
@@ -650,7 +650,8 @@ append(
|
||||
"color_devicons",
|
||||
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.
|
||||
|
||||
Default: true]]
|
||||
|
||||
@@ -437,7 +437,7 @@ utils.transform_devicons = load_once(function()
|
||||
if conf.color_devicons then
|
||||
return icon_display, icon_highlight
|
||||
else
|
||||
return icon_display
|
||||
return icon_display, "TelescopeResultsFileIcon"
|
||||
end
|
||||
end
|
||||
else
|
||||
@@ -465,7 +465,7 @@ utils.get_devicons = load_once(function()
|
||||
if conf.color_devicons then
|
||||
return icon, icon_highlight
|
||||
else
|
||||
return icon
|
||||
return icon, "TelescopeResultsFileIcon"
|
||||
end
|
||||
end
|
||||
else
|
||||
|
||||
@@ -82,6 +82,7 @@ highlight default link TelescopeResultsIdentifier Identifier
|
||||
highlight default link TelescopeResultsNumber Number
|
||||
highlight default link TelescopeResultsComment Comment
|
||||
highlight default link TelescopeResultsSpecialComment SpecialComment
|
||||
highlight default link TelescopeResultsFileIcon Normal
|
||||
|
||||
" Used for git status Results highlighting
|
||||
highlight default link TelescopeResultsDiffChange DiffChange
|
||||
|
||||
Reference in New Issue
Block a user