Skip to content

Commit 37334ad

Browse files
gegounehasecilu
andauthored
style: normalised and formatted (single icon per line) icon tables, light icons completely generated (#543)
Co-authored-by: hasecilu <hasecilu@tuta.io>
1 parent aafa5c1 commit 37334ad

File tree

12 files changed

+1579
-8842
lines changed

12 files changed

+1579
-8842
lines changed

.editorconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,10 @@ end_of_line = lf
77
[*.lua]
88
indent_style = space
99
indent_size = 2
10+
11+
[*.sh]
12+
indent_style = space
13+
indent_size = 2
14+
15+
[.luarc.json]
16+
indent_style = tab

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ jobs:
3434
- uses: actions/checkout@v3
3535

3636
- name: stylua
37-
uses: JohnnyMorganz/stylua-action@v3
37+
uses: JohnnyMorganz/stylua-action@v4
3838
with:
3939
token: ${{ secrets.GITHUB_TOKEN }}
40-
version: "0.19"
40+
version: "v2.0.2"
4141
args: --check lua scripts
4242

4343
colors:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.lua
22
.luarocks
33
/vim-colortemplate/
4+
mini-align/

.luacheckrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@ globals = {
55
"jit",
66
"bit",
77
}
8+
9+
read_globals = {
10+
"MiniAlign",
11+
}
12+
13+
files["lua/nvim-web-devicons/icons-*.lua"].max_line_length = 200

.luarc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"globals": [
66
"vim",
77
"jit",
8-
"bit"
8+
"bit",
9+
"MiniAlign"
910
]
1011
}
1112
}
12-

.styluaignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lua/nvim-web-devicons/icons-*.lua

Makefile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,32 @@
11
VIM_COLORTEMPLATE_VERSION = 2.2.3
2+
VIM_MINI_ALIGN_VERSION = 0.14.0
23

34
all: colors style-check lint filetypes
45

5-
colors: vim-colortemplate
6+
colors: vim-colortemplate mini-align
7+
rm lua/nvim-web-devicons/icons-light.lua
8+
cp lua/nvim-web-devicons/icons-default.lua lua/nvim-web-devicons/icons-light.lua
69
nvim \
710
--clean \
811
--headless \
912
--cmd "set rtp^=vim-colortemplate" \
13+
--cmd "set rtp^=mini-align" \
1014
-c 'source scripts/generate_colors.lua' \
15+
-c 'source scripts/align_spaces.lua' \
1116
-c 'qall'
1217

1318
colors-check: colors
19+
git diff --exit-code lua/nvim-web-devicons/icons-default.lua
1420
git diff --exit-code lua/nvim-web-devicons/icons-light.lua
1521

1622
vim-colortemplate:
1723
mkdir -p vim-colortemplate
1824
curl -L https://github.com/lifepillar/vim-colortemplate/archive/refs/tags/v$(VIM_COLORTEMPLATE_VERSION).tar.gz | tar zx --directory vim-colortemplate --strip-components=1
1925

26+
mini-align:
27+
mkdir -p mini-align
28+
curl -L https://github.com/echasnovski/mini.align/archive/refs/tags/v$(VIM_MINI_ALIGN_VERSION).tar.gz | tar zx --directory mini-align --strip-components=1
29+
2030
style-check:
2131
stylua . --check
2232

@@ -31,5 +41,6 @@ filetypes:
3141

3242
clean:
3343
rm -rf vim-colortemplate
44+
rm -rf mini-align
3445

3546
.PHONY: all colors style-check style-fix lint filetypes

0 commit comments

Comments
 (0)