domtronn / all-the-icons.el

A utility package to collect various Icon Fonts and propertize them within Emacs.
MIT License
1.48k stars 177 forks source link

Support tree-sitter modes #350

Closed seagle0128 closed 1 year ago

seagle0128 commented 1 year ago

Hi, builtin tree-sitter is introduced in Emacs 29, and many *-ts-mode are added, but they aren't supported in all-the-icons.

IMO, these modes should be added to all-the-icons-mode-icon-alist. e.g.

             (js-ts-mode                    all-the-icons-alltheicon "javascript"  :v-adjust -0.1 :face all-the-icons-yellow)
             (ruby-ts-mode                  all-the-icons-alltheicon "ruby-alt"    :face all-the-icons-lred)
             (bash-ts-mode                  all-the-icons-alltheicon "terminal"    :face all-the-icons-purple)
             (cmake-ts-mode                 all-the-icons-fileicon "cmake"         :face all-the-icons-red)
             (dockerfile-ts-mode            all-the-icons-fileicon "dockerfile"    :face all-the-icons-blue)
             (json-ts-mode                  all-the-icons-octicon "settings"       :face all-the-icons-yellow)
             (java-ts-mode                  all-the-icons-alltheicon "java"        :height 1.0 :face all-the-icons-purple)
             (go-ts-mode                    all-the-icons-fileicon "go"            :height 1.0 :face all-the-icons-blue)
             (go-mod-ts-mode                all-the-icons-fileicon "config-go"     :height 1.0 :face all-the-icons-blue-alt)
             (python-ts-mode                all-the-icons-alltheicon "python"      :height 1.0  :face all-the-icons-dblue)
             (rust-ts-mode                  all-the-icons-alltheicon "rust"        :height 1.2  :face all-the-icons-maroon)
             (css-ts-mode                   all-the-icons-alltheicon "css3"        :face all-the-icons-yellow)
             (yaml-ts-mode                  all-the-icons-octicon "settings"       :v-adjust 0.0 :face all-the-icons-dyellow)
             (c-ts-mode                     all-the-icons-alltheicon "c-line"         :face all-the-icons-blue)
             (c++-ts-mode                   all-the-icons-alltheicon "cplusplus-line" :v-adjust -0.2 :face all-the-icons-blue)
             (csharp-ts-mode                all-the-icons-alltheicon "csharp-line"    :face all-the-icons-dblue)