Commit Graph

53 Commits

Author SHA1 Message Date
shadmansaleh 7345986fb4 fix: use appropriate default color for transitional separators. 2022-04-01 09:18:23 +06:00
Camille Dejoye e9b935ccd6
feat: add windows component (#595)
Co-authored-by: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com>
2022-03-26 19:31:40 +06:00
shadmansaleh 399aaa564d fix: test errors in lualine_spec 2022-03-18 07:02:19 +06:00
Shadman 60b1d5dce9
feat: add support for global statusline (#613) 2022-03-18 06:59:01 +06:00
shadmansaleh 88a44ade81 fix: tabline causing neovims splash screen to disappear
Solution: set tabline option in setup() so we don't need to call
redrawtabline

fixes #542
2022-03-07 21:49:22 +06: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
shadmansaleh 6f28adb21f chore: autogen (vimdocs+formating) 2022-02-01 08:04:03 +00:00
Shadman e6e75f5e92
fix: lualine crashing because of keyboard interrupt. (#534)
* fix: lualine crashing because of keyboard interrupt.

If keyboard interrupt occurs while lualine is evaluating statusline
lualine crashes completely. Since keyboard interrupt isn't something
we can handle try to mitigate the issue by retrying to evaluate the
statusline on error.Now lualine will retry 3 times before giving
up on an runtime error.

* Make last retry unprotected call
2022-01-31 23:34:53 +06:00
Jascha van Aalst bc5c2f5658
fix: code doc typo in lualine.lua (#540) 2022-01-09 22:30:19 +06:00
shadmansaleh b18b7ee8ac chore: Use paranthesis for function calls. No paran can trip new lua users 2022-01-02 17:38:39 +06:00
smhc a11f6d15d4
Schedule a redraw of tabline when setting tabline (#520)
* Schedule a redraw of tabline when setting tabline

The tabline isn't drawn until scrolling the window or opening another file. Opening multiple files at once (e.g. nvim a.txt b.txt) will only show the first.

By performing a deferred redraw of the tabline this fixes this startup behaviour problem.

* Changed to use vim.schedule
2022-01-02 17:05:42 +06:00
James Yin c4a09735a6
fix: remove auto commands in lualine group properly on lualine reset (#488) 2021-12-13 18:22:30 +06:00
Shadman f286f0443d
tests: add more tests (#439)
* tests: add more tests

* fix: for now comment out tabline tests

will check later why some are passing locally but not in CI
2021-11-22 19:40:18 +06:00
shadmansaleh ad4f4ff751 chore: repo transfer to nvim-lualine 2021-10-22 10:57:04 +06:00
Shadman 08d1340ec9
doc: improve code documentation (#82) 2021-10-12 20:04:47 +06:00
shadmansaleh 98b43ba3a1 fix: left sections taking over entire stl when xyz is absent
- now %= applied even when x,y,z is absent
- newly added always_divide_middle option cal be set to false to avood %=
2021-10-08 04:46:38 +06:00
shadmansaleh 260133ce63 fix: wrong highlights on inactive mode with last commit 2021-09-19 12:20:07 +06:00
shadmansaleh 7147989f5f enhance: color middle of left and right statusline with lualine_c color even when section c and x are absent 2021-09-19 11:52:42 +06:00
shadmansaleh 1e72ae9ae3 fix: fix wrong trans sep when only section a and z are present 2021-09-08 20:53:23 +06:00
github-actions[bot] db448f41e6
chore: formated with stylua (#32)
Apply initial stylua format

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-09-04 00:28:20 +06:00
shadmansaleh b2fcf50742 enhance: Reload lualine for ColorScheme so auto can self update 2021-09-03 20:16:54 +06:00
shadmansaleh 8b4f70817c Refactor: Rename lualine_conifg.lua -> lualine/config.lua
This is loaded by lualine require so the peroformence will not be effected.
2021-09-03 15:59:00 +06:00
shadmansaleh 70d925ab17 Perf: More optimizations 2021-08-30 20:52:49 +06:00
shadmansaleh d7304f2b4e Remove support for deprecated themes 2021-08-30 06:35:33 -07:00
shadmansaleh 85545bd192 Perf: move the files loaded at startup to &rtp/lua require is faster
renamed:    lualine/init.lua -> lualine.lua
renamed:    lualine/config.lua -> lualine_config.lua
2021-08-30 19:02:01 +06:00
hoob3rt aec3bb9195 refactor: lualine.lua -> init.lua 2021-03-16 00:14:41 +01:00
Hubert Pelczarski 3e0332e6d2
refactor: removed ability to set theme in runtime (#130) 2021-03-16 00:13:10 +01:00
hoob3rt a1ffa2a39e fix: removed extensions from tabline 2021-03-16 00:01:04 +01:00
hoob3rt bbcd9e43be fix: added tabline handling to extensions 2021-03-13 01:21:37 +01:00
hoob3rt add3045cdc Revert "feat: added nerdtree extension"
This reverts commit da46b69e3a.
2021-03-11 00:31:57 +01:00
hoob3rt da46b69e3a feat: added nerdtree extension 2021-03-11 00:30:04 +01:00
hoob3rt a4690ca4cf Merge branch 'master' into extensions 2021-03-11 00:13:18 +01:00
hoob3rt c19724fbaa feat: made extensions consistent with statusline 2021-03-11 00:07:38 +01:00
Shadman 332f488e24
feat: add tabline support (#92) 2021-03-06 16:03:00 +01:00
Shadman 8624f7c14e
Feat: add configuration in viml and status function (#114) 2021-03-02 13:58:34 +01:00
hoob3rt d5ac4a8ffd fix: handle separator config edge case
lualine.options.component_separators='|' now behaves the same as lualine.options.component_separators={'|'}
2021-02-22 20:48:23 +01:00
Shadman 9505115133
enhancement: Donn't create unnececery hl groups (#105) 2021-02-21 15:37:59 +01:00
Shadman 202487d2ef
feat: powerline like section seperators (#94) 2021-02-20 04:21:05 +01:00
Shadman ec55986f3e
fix: reintroduction of #32 (#97) 2021-02-17 11:47:03 +01:00
Shadman 20d7f33ef9
feat: adding component specific options (#60) 2021-02-15 19:09:12 +01:00
Hubert Pelczarski 55c0f0fe9a docs: added license to all source files 2021-02-13 01:03:57 +01:00
hoob3rt 937a56d5ef fix: theme not changing at runtime 2021-02-12 13:01:37 +01:00
Shadman 8a4baa804b
Added other sources for component configuration (#53) 2021-02-10 11:40:29 +01:00
Shadman e37b3ac929
Fix #33 (#79) 2021-02-05 13:29:34 +01:00
Shadman 10a6087a74
run vimscript inside vim.api.nvim_exec (#73) 2021-01-15 05:15:04 +01:00
Shadman 2c1888e947
Putting autocomands in a group (#59)
* Warp autocmd with augroup
2021-01-11 03:40:09 +01:00
hoob3rt 4cf4ac814d bug quickfix
`mode`, `branch` and `signify` components stopped working after last
update, now they do
2021-01-06 02:36:44 +01:00
hoob3rt 710d5ad838 fixed filetype icon bug 2021-01-06 00:43:36 +01:00
hoob3rt 39dc034335 updated style to be inline with vim.api 2021-01-04 02:14:29 +01:00
hoob3rt 3ab7066718
fixed highlight bug (#19)
* fixed live colorscheme change also applying to lualine
* fixed theme definition in config not working
2021-01-04 01:17:51 +01:00