@@ -9,14 +9,15 @@ import (
9
9
10
10
// NOTE: Visit next links for inspiration:
11
11
// https://github.com/eza-community/eza/blob/main/src/output/icons.rs
12
- // https://github.com/nvim-tree/nvim-web-devicons/blob /master/lua/nvim-web-devicons/icons- default.lua
12
+ // https://github.com/nvim-tree/nvim-web-devicons/tree /master/lua/nvim-web-devicons/default
13
13
14
14
var (
15
15
DEFAULT_FILE_ICON = IconProperties {Icon : "\uf15b " , Color : "#878787" } //
16
16
DEFAULT_SUBMODULE_ICON = IconProperties {Icon : "\U000f02a2 " , Color : "#FF4F00" } //
17
17
DEFAULT_DIRECTORY_ICON = IconProperties {Icon : "\uf07b " , Color : "#878787" } //
18
18
)
19
19
20
+ // NOTE: The filename map is case sensitive.
20
21
var nameIconMap = map [string ]IconProperties {
21
22
".atom" : {Icon : "\ue764 " , Color : "#EED9B7" }, //
22
23
".babelrc" : {Icon : "\ue639 " , Color : "#FED836" }, //
@@ -92,7 +93,7 @@ var nameIconMap = map[string]IconProperties{
92
93
"Cargo.lock" : {Icon : "\ue7a8 " , Color : "#DEA584" }, //
93
94
"Cargo.toml" : {Icon : "\ue7a8 " , Color : "#DEA584" }, //
94
95
"checkhealth" : {Icon : "\U000f04d9 " , Color : "#75B4FB" }, //
95
- "cmakelists .txt" : {Icon : "\ue794 " , Color : "## DCE3EB" }, //
96
+ "CMakeLists .txt" : {Icon : "\ue794 " , Color : "#DCE3EB" }, //
96
97
"CODE_OF_CONDUCT" : {Icon : "\uf4ae " , Color : "#E41662" }, //
97
98
"CODE_OF_CONDUCT.md" : {Icon : "\uf4ae " , Color : "#E41662" }, //
98
99
"CODE-OF-CONDUCT.md" : {Icon : "\uf4ae " , Color : "#E41662" }, //
@@ -282,7 +283,7 @@ var extIconMap = map[string]IconProperties{
282
283
".cljd" : {Icon : "\ue76a " , Color : "#519ABA" }, //
283
284
".cljs" : {Icon : "\ue642 " , Color : "#2AB6F6" }, //
284
285
".cls" : {Icon : "\ue69b " , Color : "#4B5163" }, //
285
- ".cmake" : {Icon : "\ue794 " , Color : "## DCE3EB" }, //
286
+ ".cmake" : {Icon : "\ue794 " , Color : "#DCE3EB" }, //
286
287
".cmd" : {Icon : "\uebc4 " , Color : "#FF7043" }, //
287
288
".cob" : {Icon : "\u2699 " , Color : "#005CA5" }, // ⚙
288
289
".cobol" : {Icon : "\u2699 " , Color : "#005CA5" }, // ⚙
@@ -404,22 +405,22 @@ var extIconMap = map[string]IconProperties{
404
405
".guardfile" : {Icon : "\ue21e " , Color : "#626262" }, //
405
406
".gv" : {Icon : "\U000f1049 " , Color : "#005F87" }, //
406
407
".gz" : {Icon : "\uf410 " , Color : "#ECA517" }, //
407
- ".h" : {Icon : "\uf0fd " , Color : "## A074C4" }, //
408
+ ".h" : {Icon : "\uf0fd " , Color : "#A074C4" }, //
408
409
".haml" : {Icon : "\ue664 " , Color : "#F4521E" }, //
409
410
".hbs" : {Icon : "\U000f15de " , Color : "#FF7043" }, //
410
411
".hc" : {Icon : "\U000f00a2 " , Color : "#FAF743" }, //
411
412
".heex" : {Icon : "\ue62d " , Color : "#9575CE" }, //
412
413
".hex" : {Icon : "\U000f12a7 " , Color : "#25A79A" }, //
413
- ".hh" : {Icon : "\uf0fd " , Color : "## A074C4" }, //
414
- ".hpp" : {Icon : "\uf0fd " , Color : "## A074C4" }, //
414
+ ".hh" : {Icon : "\uf0fd " , Color : "#A074C4" }, //
415
+ ".hpp" : {Icon : "\uf0fd " , Color : "#A074C4" }, //
415
416
".hrl" : {Icon : "\ue7b1 " , Color : "#B83998" }, //
416
417
".hs" : {Icon : "\ue61f " , Color : "#FFA726" }, //
417
418
".htm" : {Icon : "\uf13b " , Color : "#E44E27" }, //
418
419
".html" : {Icon : "\uf13b " , Color : "#E44E27" }, //
419
420
".huff" : {Icon : "\U000f0858 " , Color : "#CFD8DD" }, //
420
421
".hurl" : {Icon : "\uf0ec " , Color : "#FF0288" }, //
421
422
".hx" : {Icon : "\ue666 " , Color : "#F68713" }, //
422
- ".hxx" : {Icon : "\uf0fd " , Color : "## A074C4" }, //
423
+ ".hxx" : {Icon : "\uf0fd " , Color : "#A074C4" }, //
423
424
".ical" : {Icon : "\uf073 " , Color : "#2B9EF3" }, //
424
425
".icalendar" : {Icon : "\uf073 " , Color : "#2B9EF3" }, //
425
426
".ico" : {Icon : "\U000f021f " , Color : "#25A6A0" }, //
@@ -690,7 +691,7 @@ var extIconMap = map[string]IconProperties{
690
691
".tlz" : {Icon : "\uf410 " , Color : "#ECA517" }, //
691
692
".tmux" : {Icon : "\uebc8 " , Color : "#14BA19" }, //
692
693
".toml" : {Icon : "\ue6b2 " , Color : "#9C4221" }, //
693
- ".torrent" : {Icon : "\ue275 " , Color : "## 4C90E8" }, //
694
+ ".torrent" : {Icon : "\ue275 " , Color : "#4C90E8" }, //
694
695
".tres" : {Icon : "\ue65f " , Color : "#42A5F5" }, //
695
696
".ts" : {Icon : "\U000f06e6 " , Color : "#0188D1" }, //
696
697
".tscn" : {Icon : "\ue65f " , Color : "#42A5F5" }, //
0 commit comments