]> Sergey Matveev's repositories - nnn.git/commitdiff
nerdfont support for chess files(pgn,fen) haskell(hs,lhs) files and hpp
authorMarco Cantoro <marco.cantoro92@outlook.it>
Wed, 12 May 2021 13:44:46 +0000 (15:44 +0200)
committerMarco Cantoro <marco.cantoro92@outlook.it>
Wed, 12 May 2021 13:44:46 +0000 (15:44 +0200)
src/icons-nerdfont.h
src/icons.h

index 8936c1d874321cbdeea800057955475bbc57faf8..b955203b63e26d0cd346cd376e5941d3c8cd35ac 100644 (file)
 /* H */
 #define ICON_EXT_H         ICON_C
 #define ICON_EXT_HH        ICON_CPLUSPLUS
+#define ICON_EXT_HS        "\ue777"
 #define ICON_EXT_HTACCESS  ICON_CONFIGURE
 #define ICON_EXT_HTPASSWD  ICON_CONFIGURE
 #define ICON_EXT_HTM       ICON_HTML
 #define ICON_EXT_PART      ICON_DOWNLOADS
 #define ICON_EXT_PATCH     "\uf440"
 #define ICON_EXT_PDF       "\uf724"
+#define ICON_EXT_PGN       "\uf639"
 #define ICON_EXT_PHP       "\ue73d"
 #define ICON_EXT_PNG       ICON_PICTUREFILE
 #define ICON_EXT_PPT       "\uf726"
index aaefab63c47ddb46c71774750a92b93f83c940f3..5dbf36fd6628f4e778593ead8e110c17748b42c6 100644 (file)
@@ -356,6 +356,7 @@ static const struct icon_pair icons_ext[] = {
 
        /* F */
        {"f#",         ICON_EXT_FSHARP,    COLOR_FSHARP},
+       {"fen",        ICON_EXT_PGN,       0},
        {"flac",       ICON_EXT_FLAC,      COLOR_AUDIO},
        {"flv",        ICON_EXT_FLV,       COLOR_VIDEO},
        {"fs",         ICON_EXT_FS,        COLOR_FSHARP},
@@ -373,6 +374,8 @@ static const struct icon_pair icons_ext[] = {
        /* H */
        {"h",          ICON_EXT_H,         COLOR_C},
        {"hh",         ICON_EXT_HH,        COLOR_C},
+       {"hpp",        ICON_EXT_HH,        COLOR_C},
+       {"hs",         ICON_EXT_HS,        COLOR_VIM},
        {"htaccess",   ICON_EXT_HTACCESS,  0},
        {"htpasswd",   ICON_EXT_HTPASSWD,  0},
        {"htm",        ICON_EXT_HTM,       0},
@@ -399,6 +402,7 @@ static const struct icon_pair icons_ext[] = {
 
        /* L */
        {"lha",        ICON_EXT_LHA,       COLOR_ARCHIVE},
+       {"lhs",        ICON_EXT_HS,        COLOR_VIM},
        {"log",        ICON_EXT_LOG,       0},
        {"lua",        ICON_EXT_LUA,       0},
        {"lzh",        ICON_EXT_LZH,       COLOR_ARCHIVE},
@@ -430,6 +434,7 @@ static const struct icon_pair icons_ext[] = {
        {"part",       ICON_EXT_PART,      0},
        {"patch",      ICON_EXT_PATCH,     0},
        {"pdf",        ICON_EXT_PDF,       COLOR_DOCS},
+       {"pgn",        ICON_EXT_PGN,       0},
        {"php",        ICON_EXT_PHP,       0},
        {"png",        ICON_EXT_PNG,       COLOR_IMAGE},
        {"ppt",        ICON_EXT_PPT,       0},