#ifndef SF_ICON_H #define SF_ICON_H #include #define DEFAULT_DIR_ICON "󰉋" #define DEFAULT_FILE_ICON "󰈔" typedef struct { const char *key; const char *icon; // Nerd Font icon } icon_pair; static const icon_pair exact_match_icons[] = { {"Makefile", ""}, {"Dockerfile", "󰡨"}, {".gitignore", ""}, {".clang-format", ""}, {"README.md", "󰍔"}, }; static const icon_pair ext_icons[] = { {"c", ""}, {"h", ""}, {"cpp", ""}, {"py", ""}, {"rs", ""}, {"go", ""}, {"sh", ""}, {"org", ""}, {"md", ""}, {"json", ""}, {"png", "󰋩"}, {"jpg", "󰋩"}, {"zip", "󰿺"}, {"tar", "󰿺"}, {"gz", "󰿺"}, }; const char *get_file_icon(const char *filename, bool is_dir); #endif /* SF_ICON_H */