Commit graph

5 commits

Author SHA1 Message Date
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
Alexander Courtis
6ef7c488d0
ci: split jobs and pin versions (#341)
* ci: normalise workflow name

* ci: normalise workflow naming

* Revert "ci: normalise workflow naming"

This reverts commit 2aeeee75a5.

* ci: split jobs

* ci: split jobs

* ci: split jobs

* ci: pin versions

* ci: check colors via make target

* ci: use ubuntu package for luacheck

* ci: use ubuntu package for lua

* ci: use ubuntu package for lua

* ci: use ubuntu package for lua

* Revert "ci: use ubuntu package for lua"

This reverts commit cdfaf7c059.

* Revert "ci: use ubuntu package for lua"

This reverts commit e134e68916.

* Revert "ci: use ubuntu package for lua"

This reverts commit 07227ebb19.

* Revert "ci: use ubuntu package for luacheck"

This reverts commit 3c3429fcf7.

* tidy runs
2023-11-20 11:18:20 +01:00
Alexander Courtis
d3cf19ef81
ci: harden colour generation (#338)
* ci: harden generation

* ci: harden generation

* ci: refactor to use make
2023-11-20 09:26:23 +11:00
Alexander Courtis
4970f75b05
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 12:32:18 +11:00
mg979
b2060eac2f
feat: light color scheme variants (#213)
* feat: inverted colors for light colorschemes

* generate cterm colors in the same script

No need to change to light background

* don't darken if already dark enough

* remove unneeded lines

* darken colors, don't invert them

* improve the scripts somewhat

* reduce darkening for non extreme values

* don't mess with package.loaded

* add one step

* refactor: move init code to the bottom

* Use a single script, add Makefile

The script can be run from the shell with `make colors`:
- the working directory must be the repo
- vim-colortemplate must be in the runtimepath

* Add another step, make a little bit darker

* More precise luminance formula

Taken from:
	https://stackoverflow.com/a/596243

* add CONTRIBUTING.md

* add CONTRIBUTING.md

* add CONTRIBUTING.md

* add CONTRIBUTING.md

* update README.md

* update README.md

* add lua/nvim-web-devicons-light.lua

* update CONTRIBUTING.md

* rename: darken_colors -> generate_colors

* fix: use pcall to check vim-colortemplate

* More CONTRIBUTING.md stuff

Currently the script requires that `cterm_color` is present, and set to
a number (any number, also 0). It's not optional.

* update CONTRIBUTING.md

---------

Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-03-06 15:22:01 +11:00