Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more icons? #12

Closed
Freed-Wu opened this issue Jul 31, 2022 · 1 comment
Closed

Add more icons? #12

Freed-Wu opened this issue Jul 31, 2022 · 1 comment

Comments

@Freed-Wu
Copy link
Collaborator

Freed-Wu commented Jul 31, 2022

How about

index d51c479..c773c6d 100644
--- a/autoload/nerdfont/path/basename.vim
+++ b/autoload/nerdfont/path/basename.vim
@@ -14,6 +14,7 @@ let g:nerdfont#path#basename#defaults = {
       \ '_gvimrc'                          : '',
       \ '_vimrc'                           : '',
       \ 'cmakelists.txt'                   : '',
+      \ 'requirements.txt'                 : '',
       \ 'config.ru'                        : '',
       \ 'docker-compose.yml'               : '',
       \ 'dockerfile'                       : '',
diff --git a/autoload/nerdfont/path/extension.vim b/autoload/nerdfont/path/extension.vim
index 1afbf5a..c2b445e 100644
--- a/autoload/nerdfont/path/extension.vim
+++ b/autoload/nerdfont/path/extension.vim
@@ -10,6 +10,7 @@ let g:nerdfont#path#extension#defaults = {
       \ 'c'        : '',
       \ 'c++'      : '',
       \ 'cc'       : '',
+      \ 'cu'       : '',
       \ 'clj'      : '',
       \ 'cljc'     : '',
       \ 'cljs'     : '',
@@ -44,6 +45,7 @@ let g:nerdfont#path#extension#defaults = {
       \ 'gif'      : '',
       \ 'go'       : '',
       \ 'h'        : '',
+      \ 'cuh'      : '',
       \ 'haml'     : '',
       \ 'hbs'      : '',
       \ 'hh'       : '',

requirements.txt is the configuration of python, and cu and cuh are cuda's c source file and header file.

I found a reference: https://github.com/Peltoche/lsd/blob/master/src/icon.rs#L102 or https://github.com/ogham/exa/blob/master/src/output/icons.rs. Maybe we can do more?

@lambdalisue
Copy link
Owner

Cool. PR please 👍

lambdalisue added a commit that referenced this issue Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants