diff options
| author | Antoine Bertin <antoine@bertin.io> | 2022-04-18 14:05:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-18 14:05:57 +0200 |
| commit | 6e7ed1b9638f09661fcb3a6db68f3ad77c8036be (patch) | |
| tree | b0889d7e314fd55b6c55f679a58b29416be57b00 /lua | |
| parent | 32505ece725755a564f3f4c7366929c630d75e24 (diff) | |
feat: add default hl group for devicons (#1849)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/config.lua | 3 | ||||
| -rw-r--r-- | lua/telescope/utils.lua | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lua/telescope/config.lua b/lua/telescope/config.lua index 7b08dc6..1f4556b 100644 --- a/lua/telescope/config.lua +++ b/lua/telescope/config.lua @@ -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]] diff --git a/lua/telescope/utils.lua b/lua/telescope/utils.lua index b8935ca..d4922f2 100644 --- a/lua/telescope/utils.lua +++ b/lua/telescope/utils.lua @@ -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 |
