Commit Graph

12 Commits

Author SHA1 Message Date
shadmansaleh 4ebbb7ae16 chore: lint correct test directory 2022-03-26 10:00:51 +00:00
kylo252 5a91d816a0
chore(tests): move tests out of lua directory (#621) 2022-03-25 13:35:59 +00:00
Shadman 37a314b9e3
feat: add support for dynamic color with functions in color options (#566)
* feat: allow functions in color options.

* update_evilline

* docs: document color functions

* remove unnecesery stuff

* add dynamic color supoort for themes

* chore: autogen (vimdocs+formating)

* fix dynamic colors not working as color fallback

* fix transitional separators not updating for dynamic colors dynamic colors

* fix failing tests

* apply format

* Allow cases where theme doesn't even define nornal color for some mode

* allow color function to return nil

* some enhancements

* more enhancements

* code cleanup

* if we don't have even normal in theme we should just nvim highlight it with it's ususal stl colors

* not sure how it get here . It should be in different pr

* keep only c of lualine_c in component section name

* use sh to run docgen

* fix filetype component not respecting color option properly

* fix section x,y,z not falling back to correct colors

* auto format

* actually fix xyz not falling back to correct mode

* fix comp sep not correctly removed properly on function hl

* pass only section in color fn

* more enhancements

* update docs

* update create_comp_hl call locations

* enhancements+fixes

* fix broken hls in tabline

* Fix function color options not inheriting right colors

* some enhancements

* fix tests

* tweek docs

Co-authored-by: shadmansaleh <shadmansaleh@users.noreply.github.com>
2022-03-02 19:37:08 +06:00
Shadman 247aafd7fc
chore: overhaul CI (#565)
* run tests on multiple versions of neovim
* run docgen & formating in pr
* chore: small fixes in docs.
2022-02-01 14:00:36 +06:00
shadmansaleh 7ba7829a05 fixup: fix failing tests 2021-10-22 10:19:29 +06:00
Shadman 632a11fa33
chore: setup luacov for test coverage (#85) 2021-10-13 21:51:19 +06:00
shadmansaleh 9f556fdf37 chore: add license statements and update benchmarks 2021-09-20 17:48:22 +06:00
Shadman 62bfe80fb6
chore/docgen update (#48)
* Pin panvimdoc to v2.7.1
* Add helper script to easily generate vimdoc locally.
* Update generated doc.
2021-09-14 12:58:46 +06:00
Shadman 4042e837f8
chore: use stylua for formating
* Switch to stylua for formating

* Change lua-format ignore to stylua ignore.

* Add workflow for formating with stylua
2021-09-04 00:20:34 +06:00
shadmansaleh 7f02a3a292 Include evil_lualine config in examples/ and fix warnings in evil_lualine 2021-08-14 01:36:14 +06:00
Hubert Pelczarski 82826ef661
refactor: moved loading to new module (#182)
* refactor: moved loading to new module
* refactor: check_single_separator
* refactor: simplified separator fixing
* refactor: tests/ -> lua/tests/
* refactor: moved to nvim_err_writeln for errors

* feat: moved config parsing to config.lua
* feat: get config directly from config module
* feat: added load_all function

* tests: config parsing tests

* added assert to luacheck globals
2021-05-09 23:11:18 +02:00
Hubert Pelczarski 8572db014a
testing (#127)
* Add testing setup + CI
* Add tests for components and utils funtions

Co-authored-by: shadmansaleh <shadmansaleh3@gmail.com>
2021-05-06 00:04:16 +06:00