diff --git a/.gitignore b/.gitignore index 75bcfb1..df26625 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ .lua .luarocks -vim-colortemplate +/vim-colortemplate/ diff --git a/Makefile b/Makefile index 0c586ff..5f3344b 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +VIM_COLORTEMPLATE_VERSION = 2.2.3 + all: colors style-check lint colors: vim-colortemplate @@ -12,7 +14,8 @@ colors-check: colors git diff --exit-code lua/nvim-web-devicons/icons-light.lua vim-colortemplate: - git clone --depth 1 https://github.com/lifepillar/vim-colortemplate.git 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 @@ -23,4 +26,7 @@ style-fix: lint: luacheck lua scripts +clean: + rm -rf vim-colortemplate + .PHONY: all colors style-check style-fix lint