2023-11-27 03:25:41 +01:00
|
|
|
VIM_COLORTEMPLATE_VERSION = 2.2.3
|
|
|
|
|
ci: style, lint dev: precommit, style, lint, editorconfig (#218)
* add stylua, luacheck, luarc, editorconfig, pre-commit hooks
* add stylua, luacheck, luarc, editorconfig, pre-commit hooks
* add comments before icons_by_filename and icons_by_file_extension
* stylua nit for generated light
* correct luacheck stylua order in contributing.md
* add stylua/luacheck OS package notes
* use make instead of pre-commit hooks
* document prerequisites
* remove setup-hooks.sh
* ci: add pre-commit configuration and GHA (#233)
* ci: add pre-commit configuration
* ci: add GHA to autoupdate pre-commit hooks
---------
Co-authored-by: gegoune <69750637+gegoune@users.noreply.github.com>
2023-03-20 02:32:18 +01:00
|
|
|
all: colors style-check lint
|
|
|
|
|
2023-11-19 23:26:23 +01:00
|
|
|
colors: vim-colortemplate
|
|
|
|
nvim \
|
|
|
|
--clean \
|
|
|
|
--headless \
|
|
|
|
--cmd "set rtp^=vim-colortemplate" \
|
|
|
|
-c 'source scripts/generate_colors.lua' \
|
|
|
|
-c 'qall'
|
|
|
|
|
2023-11-20 11:18:20 +01:00
|
|
|
colors-check: colors
|
|
|
|
git diff --exit-code lua/nvim-web-devicons/icons-light.lua
|
|
|
|
|
2023-11-19 23:26:23 +01:00
|
|
|
vim-colortemplate:
|
2023-11-27 03:25:41 +01:00
|
|
|
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
|
2023-03-06 05:22:01 +01:00
|
|
|
|
ci: style, lint dev: precommit, style, lint, editorconfig (#218)
* add stylua, luacheck, luarc, editorconfig, pre-commit hooks
* add stylua, luacheck, luarc, editorconfig, pre-commit hooks
* add comments before icons_by_filename and icons_by_file_extension
* stylua nit for generated light
* correct luacheck stylua order in contributing.md
* add stylua/luacheck OS package notes
* use make instead of pre-commit hooks
* document prerequisites
* remove setup-hooks.sh
* ci: add pre-commit configuration and GHA (#233)
* ci: add pre-commit configuration
* ci: add GHA to autoupdate pre-commit hooks
---------
Co-authored-by: gegoune <69750637+gegoune@users.noreply.github.com>
2023-03-20 02:32:18 +01:00
|
|
|
style-check:
|
|
|
|
stylua . --check
|
|
|
|
|
|
|
|
style-fix:
|
|
|
|
stylua .
|
|
|
|
|
|
|
|
lint:
|
2023-11-20 11:18:20 +01:00
|
|
|
luacheck lua scripts
|
ci: style, lint dev: precommit, style, lint, editorconfig (#218)
* add stylua, luacheck, luarc, editorconfig, pre-commit hooks
* add stylua, luacheck, luarc, editorconfig, pre-commit hooks
* add comments before icons_by_filename and icons_by_file_extension
* stylua nit for generated light
* correct luacheck stylua order in contributing.md
* add stylua/luacheck OS package notes
* use make instead of pre-commit hooks
* document prerequisites
* remove setup-hooks.sh
* ci: add pre-commit configuration and GHA (#233)
* ci: add pre-commit configuration
* ci: add GHA to autoupdate pre-commit hooks
---------
Co-authored-by: gegoune <69750637+gegoune@users.noreply.github.com>
2023-03-20 02:32:18 +01:00
|
|
|
|
2023-11-27 03:25:41 +01:00
|
|
|
clean:
|
|
|
|
rm -rf vim-colortemplate
|
|
|
|
|
ci: style, lint dev: precommit, style, lint, editorconfig (#218)
* add stylua, luacheck, luarc, editorconfig, pre-commit hooks
* add stylua, luacheck, luarc, editorconfig, pre-commit hooks
* add comments before icons_by_filename and icons_by_file_extension
* stylua nit for generated light
* correct luacheck stylua order in contributing.md
* add stylua/luacheck OS package notes
* use make instead of pre-commit hooks
* document prerequisites
* remove setup-hooks.sh
* ci: add pre-commit configuration and GHA (#233)
* ci: add pre-commit configuration
* ci: add GHA to autoupdate pre-commit hooks
---------
Co-authored-by: gegoune <69750637+gegoune@users.noreply.github.com>
2023-03-20 02:32:18 +01:00
|
|
|
.PHONY: all colors style-check style-fix lint
|