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

View File

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

View File

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

View File

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