496 Commits

Author SHA1 Message Date
shadmansaleh
66b0736fd4 fix: left section separator not displayed when component begins with a custom highlight 2021-08-05 21:44:22 +06:00
shadmansaleh
65464f7849 fix: component highlights fg defaulting to bg 2021-08-05 21:38:09 +06:00
shadmansaleh
0ad7145127 feat: reload lualine after bacground is set. So themes can adapt 2021-08-04 08:37:35 +06:00
shadmansaleh
46a86a9cca Fix: typo 2021-08-04 08:28:53 +06:00
shadmansaleh
6aecf4a341 feat: Expose current config with lualine.get_config() 2021-08-04 07:13:37 +06:00
alexfertel
7b98680316 fix: Typos 2021-08-03 18:03:26 +06:00
shadmansaleh
ea2432cc1e feat: Add source option to diff
It allows you to easily integrate external source for diff count.
If user has some other plugin keeping track of diff counts. There's
no reason for lualine to make same calculations again . It can just
reuse them. But lualine knows nothing about how other plugin exposes
their api so user will have to glue them together with this option.
2021-08-03 17:41:37 +06:00
shadmansaleh
e7b8b42089 Fix: Branch not working on directory with whilespace 2021-08-03 15:28:05 +06:00
shadmansaleh
ac9a9e0a8b fix: Possible fix to diff sometimws not apearing 2021-08-03 12:19:12 +06:00
shadmansaleh
62b53c854c feat: Allow extensions to spwcify inactive sections too 2021-08-03 12:08:17 +06:00
shadmansaleh
51daaf6f5a fix: Fixes bug diff somtimes doubled 2021-08-03 09:56:07 +06:00
shadmansaleh
486be4462f Remove new_async():send() pattern + restructure augroup
This does not load load lualine asyncronasly rather fools the profilers
In addition causes issues like intro disapearing
2021-08-02 21:16:17 +06:00
shadmansaleh
7a45a4f7fe feat: Add support for useing color_name like red and cterm values to set colors in lualine 2021-08-02 20:25:34 +06:00
shadmansaleh
fd5f635f4f doc: Remove docs for component specific transitional separator
Keep it as experimental feature for now . It requires more testing
2021-08-02 19:40:14 +06:00
shadmansaleh
74d23fbd0c Reload theme when setting it up so auto can pick up changes in coloracheme 2021-08-02 12:48:23 +06:00
shadmansaleh
6d153dac1f |BEAKING_CHNAGE| Fix :lualine disapearing on reload + Allow live updates
Breaking Change: Now subsequent call to lualine.setup modifies old setup
instead of configuring from scratch
2021-08-02 12:40:11 +06:00
J. Bromley
f1dbb2f4a8 Fixed using 'auto' theme with default colorscheme.
When setting theme to 'auto' and using the default colorscheme, lualine
would report "theme not found, defaulting to gruvbox". Fixed by checking
that we get an actual color back when calling utils.extract_highlight_colors
before attempting to apply a brightness modifier.

* Fix brightness_modifier application.

The brightness_modifer() should only be applied when a normal color was
found.

* Apply brightness modifier when normal color not nil.

Moved application of brightness_modifier outside the if statement that
negates the brightness modifier. The modifier will now be applied when
get_color_brightness returns < 0.5.
2021-07-29 22:47:07 +06:00
shadmansaleh
e544b47895 Load lualine after session load
closes #309
2021-07-27 13:25:10 +06:00
shadmansaleh
f7c44efb6f Proritize color option then theme when creating comppnent_hl
closes #299
2021-07-27 13:18:25 +06:00
shadmansaleh
87b060f390 Fix create_component_highlight overwritting older highlight with same hl_tag
This is necessary so color option from inactive and active sections do not conflict
2021-07-27 12:57:51 +06:00
Shadman
ab818ec91a
Merge pull request #1 from shadmansaleh/feat/diagnostic/add_option/update_in_insert
feat: Add update_in_insert option to diagnostics component
2021-07-25 13:51:37 +06:00
shadmansaleh
f60bec0969 feat: Add update_in_insert option to diagnostics component 2021-07-25 13:48:50 +06:00
shadmansaleh
c57cb43c4d feat:Add component evaluation for inactive sections 2021-07-25 12:52:52 +06:00
shadmansaleh
438ab4e468 Feat: Allow transitional separators to be set on component basis 2021-07-25 12:41:07 +06:00
shadmansaleh
1d40e34aef Refactor: filetype icon and add disable_text option 2021-07-25 12:39:20 +06:00
David Ruiz
9726824f1d
docs: fixed typo (#262)
* Typo in docs

* Update README.md
2021-05-27 19:53:27 +02:00
Tim Bedard
2aaf434094
feat: add separate hint diagnostic (#241)
* add separate hint diagnostic

* change to lightbulb icon
2021-05-25 22:13:43 +02:00
shadmansaleh
d7f3168a55 Small tweek 2021-05-21 11:30:32 +06:00
shadmansaleh
7fc7175ed6 Add docs 2021-05-21 11:30:14 +06:00
shadmansaleh
d8a2a640e0 refactor statusline() function 2021-05-21 11:25:14 +06:00
shadmansaleh
f480db58fb Allow transitional separator to be set as component option 2021-05-21 11:25:13 +06:00
shadmansaleh
a560209c24 Refractor filetype and add disable_text option 2021-05-21 11:23:09 +06:00
shadmansaleh
46eed19a11 Use %{%eval%} blocks 2021-05-21 11:14:54 +06:00
shadmansaleh
ef47235330 Add component evaluation for inactive sections 2021-05-21 11:11:25 +06:00
John Hunter
0411f1c830
feat: horizon theme (#253)
* Added Horizon theme

* Tweaked a colour

* another tweak and updated readme with screenshots.

* Added copyright and luaformatter. Corrected THEMES.md

* fixed lint error
2021-05-21 00:07:27 +02:00
Alejandro Sanchez
2f0f1fc49d
feat: quickfix/locationlist extension(#248) 2021-05-19 22:36:55 +02:00
Hubert Pelczarski
2c2876ae0c
docs: updated screenshot width (#252) 2021-05-19 13:44:38 +02:00
hubert
496b2ef3b5 Revert "docs: updated image width in THEMES.md & README.md"
This reverts commit 87084286d1a1e2fd5dbc900bec5ecc8c3083ad22.
2021-05-19 13:30:28 +02:00
hubert
87084286d1 docs: updated image width in THEMES.md & README.md 2021-05-19 13:29:39 +02:00
Duc Pham
8b2b825043
feat: gruvbox light theme (#250) 2021-05-19 12:57:57 +02:00
Hubert Pelczarski
3702e682ac
refactor: remove filename warning (#228) 2021-05-18 17:13:13 +02:00
hubert
9d9ee2d60e feat: user defined extensions 2021-05-14 20:24:54 +02:00
Hubert Pelczarski
a65168662e
Update README.md (#245) 2021-05-14 14:19:54 +02:00
Hubert Pelczarski
354b76ed1a
perf: prevent rehashing in themes for slight performance increase (#244) 2021-05-14 02:09:34 +02:00
Hubert Pelczarski
292609e3ad
docs: vimscript removal prep (#243) 2021-05-13 23:19:11 +02:00
Hubert Pelczarski
d43a459c06
Update README.md (#240) 2021-05-13 21:08:36 +02:00
Hubert Pelczarski
e083bf9576
docs: update README.md & lualine.txt (#239)
* docs: updated luline.txt

* docs: updated lualine.txt tags

* docs: removed whitespaces from lualine.txt

* docs: updated README.md to match lualine.txt

* docs: added separators to readme

* docs: changes options section to provide examples instead of table

* docs: fixed wrong comment in options

* docs: made lualine.txt consistent with readme.md

* docs: removed notice about theme mirroring

* docs: changes tags structure
2021-05-13 21:01:37 +02:00
Shadman
634959f0e9
feat: allow x,y,z sections to be themed independently (#238)
If theme for x,y,z is unspecified the defaukt to c,b,a respectively
2021-05-13 18:39:30 +02:00
JL Bas
1ee99e0473
enhancement: show diff when component is loaded (#234) 2021-05-13 12:24:51 +02:00
Shadman
33aaabe672
Fix filename error message (#237) 2021-05-12 15:27:37 +06:00