feat: add default hl group for devicons (#1849)

This commit is contained in:
Antoine Bertin
2022-04-18 14:05:57 +02:00
committed by GitHub
parent 32505ece72
commit 6e7ed1b963
4 changed files with 7 additions and 4 deletions

View File

@@ -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

View File

@@ -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]]

View File

@@ -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

View File

@@ -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