nvim-web-devicons/Makefile
Alexander Courtis 5efb8bd068
ci: use vim-colortemplate tarball rather than git clone (#347)
* ci: add vim-colortemplate to .gitignore

* ci: download vim-colortemplate rather than clone
2023-11-27 13:25:41 +11:00

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