mirror of
https://github.com/nvim-tree/nvim-web-devicons
synced 2024-09-16 13:44:06 +02:00
5efb8bd068
* ci: add vim-colortemplate to .gitignore * ci: download vim-colortemplate rather than clone
32 lines
687 B
Makefile
32 lines
687 B
Makefile
VIM_COLORTEMPLATE_VERSION = 2.2.3
|
|
|
|
all: colors style-check lint
|
|
|
|
colors: vim-colortemplate
|
|
nvim \
|
|
--clean \
|
|
--headless \
|
|
--cmd "set rtp^=vim-colortemplate" \
|
|
-c 'source scripts/generate_colors.lua' \
|
|
-c 'qall'
|
|
|
|
colors-check: colors
|
|
git diff --exit-code lua/nvim-web-devicons/icons-light.lua
|
|
|
|
vim-colortemplate:
|
|
mkdir -p vim-colortemplate
|
|
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
|
|
|
|
style-check:
|
|
stylua . --check
|
|
|
|
style-fix:
|
|
stylua .
|
|
|
|
lint:
|
|
luacheck lua scripts
|
|
|
|
clean:
|
|
rm -rf vim-colortemplate
|
|
|
|
.PHONY: all colors style-check style-fix lint
|