You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Make sure each icon association occupies exactly one line.
46
+
47
+
***All of the following keys are required:***
48
+
49
+
-`icon` glyph
50
+
-`color` must contain a color in the html notation
51
+
-`cterm_color` must contain a number (any number)
52
+
- the correct value for `cterm_color` will be generated by the script in next step
53
+
-`name` must only contain alphanumeric characters (don't use `/`, `-`, `_`)
54
+
27
55
## Building
28
56
57
+
Note: Ensure your current working directory is the repo root.
58
+
29
59
Following your changes, please run:
30
60
31
61
```sh
@@ -34,7 +64,7 @@ make
34
64
35
65
This will:
36
66
37
-
1.`git clone --depth 1 https://github.com/lifepillar/vim-colortemplate.git vim-colortemplate` if necessary
67
+
1.Install required plugins: [vim-colortemplate](https://github.com/lifepillar/vim-colortemplate.git) and [mini.align](https://github.com/echasnovski/mini.align) if necessary
38
68
2. Generate cterm colors
39
69
3. Generate light color variants
40
70
4. Check style
@@ -47,46 +77,7 @@ You can automatically fix any style issues via:
47
77
make style-fix
48
78
```
49
79
50
-
## Generate Colors
51
-
52
-
Add or update icons in `lua/nvim-web-devicons/icons-default.lua`
53
-
54
-
There are five tables where icons can be added:
55
-
56
-
1.`icons_by_filename`
57
-
2.`icons_by_file_extension`
58
-
3.`icons_by_operating_system`
59
-
4.`icons_by_desktop_environment`
60
-
5.`icons_by_window_manager`
61
-
62
-
Add the icon to table **1.** if the icon is for a file that is always named that way, for example `.gitconfig`.
63
-
Add the icon to table **2.** if the icon is for all files with an extension, for example `vim`.
64
-
Add the icon to table **3.**, **4.**, **5.** if the icon is from an OS, DE or WM.
65
-
66
-
Each icon must have the following structure (this is an example):
67
-
68
-
```lua
69
-
[".gitconfig"] = {
70
-
icon="",
71
-
color="#41535b",
72
-
cterm_color="0",
73
-
name="GitConfig",
74
-
},
75
-
```
76
-
77
-
***Key/value pairs must appear in the same exact order!***
78
-
79
-
-`color` must contain a color in the html notation
80
-
-`cterm_color` must be below `color`, and it must contain a number (any number)
81
-
- the correct value for `cterm_color` will be generated by the script
82
-
-`name` must only contain alphanumeric characters (don't use `/`, `-`, `_`)
83
-
84
-
Ensure your current working directory is the repo root. Run `make`. This will:
0 commit comments