47 Commits

Author SHA1 Message Date
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 da46b69e3af132706ad8f796ddb105a2a80f1062.
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
Eli W. Hunter
b8ad8a13b2
Use table.concat instead of string concatentation (#7) 2021-01-03 20:11:22 +01:00
hoob3rt
60d9157b41 removed lualine.status call from lualine.lua 2020-12-31 00:57:35 +01:00
hoob3rt
fa6aa3c324 initial lualine setup 2020-12-30 15:48:51 +01:00