Commit Graph

194 Commits

Author SHA1 Message Date
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
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
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 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
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 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
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
Hubert Pelczarski f644841206
fix: extensions not loading properly (#232)
* refactor: removed inactive sections from extensions

* fix: extensions not loading properly
2021-05-11 21:40:54 +02:00
Hubert Pelczarski 31de50919a
feat: quickfix extension (#229)
* feat: quickfix extension
2021-05-11 21:22:58 +02:00
Jonathan Gin bfae320155
feat: color filetype icons when using nvim-devicons (#222) 2021-05-11 14:55:18 +02:00
Hubert Pelczarski 73a6c8fadf
feat: dynamic shortening for filetype (#224)
* feat: dynamic shortening for filetype

* feat: redraw statusline on VimResized

Co-authored-by: NullVoxPopuli <LPSego3+dev@gmail.com>
Co-authored-by: shadmansaleh <shadmansaleh3@gmail.com>
2021-05-11 12:47:09 +02:00
Hubert Pelczarski 11280b44f2
fix: extensions not working without deepcopy (#223) 2021-05-10 18:27:39 +02: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
Folke Lemaitre c8b96850c9
fix: try LspDiagnostics colors first before fallling back to Diff colors (#216) 2021-05-07 13:03:11 +02:00
Shadman 141778c953
bugfix: perf improvements (#213)
* Revert "Revert "Performence improvments (#205)" (#212)"

This reverts commit d3cc343053.

* BugFix: All windows having same component state
2021-05-06 13:05:55 +02:00
Hubert Pelczarski d3cc343053
Revert "Performence improvments (#205)" (#212)
This reverts commit 141417de61.
2021-05-06 04:45:07 +02:00
Shadman 141417de61
Performence improvments (#205)
* Only load default config when needed

* Only load default cterm colors when needed

* Async load components and theme

* Rename: util_colors -> cterm_colors
2021-05-04 19:42:26 +02:00
Shadman 64ab49f55a
partially revert f08e8514 (#209)
Deepcopying default config is not reverted . And now user config is always applied on top of default_config. Functionaly it should be same as before f98e8514
2021-05-04 05:03:26 +06:00
Shadman 4c3d76d9cf
Feat: Disable lualine om specific buffer (#206)
Adding a new option in options table named `disabled_filetypes` .
It's a list of filetypes . If current filetyoe is on the list
statusline will be disabled.
2021-05-02 23:16:03 +06:00
shadmansaleh 39102109b8 Don't apply `g:lualine` config if config given to setup function 2021-05-02 10:51:42 +06:00
shadmansaleh f08e8514dd Clear old config before applying a new one
Options are reseted to defaults and other sections are cleared
2021-05-02 10:51:42 +06:00
Shadman f2f014e379
Fix: Transitional highlight not found error (#203)
Changes:
- transitional_highlight isn't created when both retrieval of fg or bg
  has failed
- Transitional highlight is not looked for when section separators are
  disabled
- empty section no longer returns highlight group as section data
2021-05-02 10:36:51 +06:00
agarof 6ba2b80b59
Fix themes incorrectly setting the bold attribute (#194) 2021-04-26 00:24:29 +02:00
Shadman e3a558bc1d
Fix component separator not removed for string color (#192) 2021-04-23 17:41:41 +06:00
Shadman 2f17e432ee
fix: typo functon -> function (#191) 2021-04-22 21:09:34 +02:00
Tim Bedard e6cc09c2e9
feat(filename): add support for custom filename symbols (modified, readonly) (#185)
* feat(filename): add support for custom filename symbols (modified, readonly)

* update docs
2021-04-20 22:25:25 +06:00
Tim Bedard 96938c5db2
style: Spell fix instence -> instance (#184) 2021-04-20 09:02:21 +06:00
ronnie@machine 2158095193
feat: modus_vivendi theme (#168)
* added the modus_vivendi theme

* Added screenshorts for modus_vivendi theme

* rearranged the themes to be alphabetical

* changed the a component's forground to lightgray

* changed screenshots to reflect the new foreground color for the a component

* lua-format and docstring added
2021-04-15 19:15:03 +02:00
Shadman 2a222d7ad6
Better fix to nil on vimfunc (#178) 2021-04-14 18:25:34 +06:00
Shadman dac7a290df
BugFix: fix vim functions displaying nil (#177) 2021-04-14 10:07:19 +06:00
Shadman aa844a9555
BugFix: Fix function component not working (#175)
When the provided function takes an optional argument the previous
implementation causes error.
2021-04-13 23:09:01 +06:00
Shadman 4f53d053a1
Refactor: Remove cterm from hlighlight extractor (#174)
- remove cterm color extraction
- fix lint issues
- apply lua-format
2021-04-13 18:36:51 +06:00
shadmansaleh 77c4c47482 Enhance: Cleanup eval_lua component and document it 2021-04-12 21:59:55 +06:00
shadmansaleh 287e5def31 Enhance: Stop modifying global state.
v:lua.require is used insted of exposing function as global variable.
2021-04-12 21:59:55 +06:00
shadmansaleh 82f68c42df Enhance: Cterm colors only loaded when termguicolors = false 2021-04-12 21:59:55 +06:00
shadmansaleh 9e957e341e Feat: Allow color option to accept highlight group 2021-04-12 21:59:55 +06:00
shadmansaleh d6758af65b Feat: Add condition option 2021-04-12 21:51:31 +06:00
Shadman 7eacdb787f
fix: hostname component not working (#170) 2021-04-12 14:04:43 +02:00
Hubert Pelczarski 3e94f2786f
feat: addad chad&nnvim tree extensions (#167)
* feat: addad chad&nnvim tree extensions

* fix: updated all extensions

* applied suggestions
2021-04-12 14:03:25 +02:00
Shadman 1b81b0021f
Refactor: Components now use OOP style (#141) 2021-04-11 10:20:41 +02:00
Hubert Pelczarski 2b32fb090f
fix: theme type check fix (#165)
* fix: theme type check fix

* fix: string concat bug

* fix: removed semmicolon
2021-04-08 13:06:31 +02:00
John Sun 23e6bd5dd7
fix: Restore support for dictionary-typed theme setup parameter (#162)
* support passing in dictionary as theme definition

Allows setting up lualine with a theme dictionary like:
```lua
setup{
  theme = { normal = {...}; insert = { ... }; }
}
```
this was the original behaviour before 37a3b8cc.

* comment
2021-04-08 09:52:57 +02:00
Shadman 37a3b8cc82
feat: enhance theme (#153)
* Enhance Theme

- loaded theme table is nolonger stored in configs and thus not passed
  to components. Insted it's cached in highlights.lua
- Reintroducing clear_highlights turns out themes can still change if
  setup is called more than once

* Add error messege for invalid theme

It stops lualine from crashing in such incedent

* Apply lua-format

* Small tweeks
2021-04-07 02:34:36 +02:00
Jaekyeom Kim 7f1d7ba3fb
fix: displaying relative paths. (#155) 2021-03-31 16:47:38 +02:00
Evan Travers e057def23e
forest_night -> everforest (#152)
https://github.com/sainnhe/everforest/issues/43
2021-03-31 03:35:38 +02:00
hoob3rt 3f1939d78f refactor: removed unused local M 2021-03-30 15:42:38 +02:00
Yusei Ueno a2721e5ada
feat: add diagnostic sources option vim_lsp (#151) 2021-03-29 16:53:19 +02:00
Shadman 78b8260084
Feat: Adding readonly to filestatus (#149) 2021-03-28 03:38:47 +02:00
Shadman a3037fbf0b
BugFix: diagnostics highlight extraction (#144) 2021-03-26 13:51:48 +01:00
Hubert Pelczarski 62c22d0f05
refactor: completely moved to setup function (#133) 2021-03-25 12:03:43 +01:00
JayceFayne 7bf5076ece
fix: typo in warning message 2021-03-23 19:53:53 +01:00
Shadman 7c8ddf307b
refactor: highlight improvements
* Refactor highlight restoring after ColorScheme

Previously custom highlights/ component highlights had to call
expand_set_theme to make them restored . That's unintuative . Now any
highlight created by lualine.highlight.highlight() will be restored :)

* Renamed component -> var_name | Proper BugFix
2021-03-22 15:29:37 +01:00
hoob3rt c171d75797 feat: added hostname component 2021-03-22 15:17:27 +01:00
hoob3rt 0a7f268970 refactor: async.lua -> utils/async.lua 2021-03-18 02:24:44 +01:00
hoob3rt 21ea1acc61 refactor: config.lua -> defaults.lua 2021-03-18 02:13:40 +01:00
hoob3rt bfc9c744d7 refactor: moved section utils to new file 2021-03-18 01:57:59 +01:00
hoob3rt 1fea8b7fe5 refactor: moving to setup function 2021-03-17 01:02:13 +01:00
hoob3rt b31b66fa79 refactor: applied lua-format to all files 2021-03-16 00:37:46 +01:00
hoob3rt aec3bb9195 refactor: lualine.lua -> init.lua 2021-03-16 00:14:41 +01:00
Hubert Pelczarski 6e64822f50
Merge pull request #126 from hoob3rt/extensions 2021-03-16 00:06:06 +01:00
hoob3rt 74323eb08b refactor: simplified extension sections 2021-03-16 00:05:41 +01:00
Hubert Pelczarski d5150f481e
Merge pull request #129 from shadmansaleh/fix_bug_component_highlights_not_blending_with_bg
fix bug component highlights not blending with bg
2021-03-14 16:01:27 +01:00
shadmansaleh daa4cd45b3 Restructure mode conponent 2021-03-14 20:14:19 +06:00
shadmansaleh b79fd4cc24 Bug fix: componnet highlight not blending 2021-03-14 20:13:46 +06:00
hoob3rt 2dcdd73e33 Merge branch 'master' of https://github.com/hoob3rt/lualine.nvim 2021-03-14 14:49:42 +01:00
hoob3rt a0346824aa refactor: removed all signify file 2021-03-14 14:49:04 +01:00
Shadman 2c2b8b0906
Fix #125 (diff highlight affecting other component) (#128) 2021-03-14 14:38:19 +01:00
hoob3rt ccca56d057 feat: updated fzf extension to new api 2021-03-13 00:52:28 +01:00
hoob3rt 303edcfe96 feat: added nerdtree extension 2021-03-11 00:32:13 +01:00
hoob3rt 64a378d670 feat: added fugitive extension 2021-03-11 00:14:37 +01:00
Shadman 87899eefc5
feat: add automatic theme generation (#104) 2021-03-02 14:01:34 +01:00
Shadman 8624f7c14e
Feat: add configuration in viml and status function (#114) 2021-03-02 13:58:34 +01:00
JINNOUCHI Yasushi e4723362c4
feat: enable to set symbols for diff component (#116)
Changes logic to store diffs in `git_diff` because the original has
stored them in a list:

```
{1, 2, 3} => {added = 1, modified = 2, removed = 3}
```
2021-03-02 01:10:23 +01:00
IGI-111 8c8a489612
feat: palenight theme (#123)
Based on https://github.com/drewtempelmeyer/palenight.vim
2021-02-28 04:16:57 +01:00
Shadman d019c04afc
fix: filetype icon not updating with file change (#119) 2021-02-27 19:31:18 +01:00
Nick Friday ed7d186987
fix: made dracula theme similar to other themes (#121) 2021-02-27 17:13:51 +01:00
Shadman ec47bb0447
fix: wrong data displayed by diff component (#117)
Sometimes async process outputs partial data. Previously that data was
processed imediatly causing wrong results. Now the data is processed
after async processes finishes
2021-02-24 18:03:24 +01:00
Shadman f47f68cee6
feat: drop signify dependency (added diff component) (#87) 2021-02-23 13:54:04 +01:00
Shadman e59ac51ca9
refactor: removed cterm colors from themes (#115) 2021-02-22 21:28:29 +01:00
JINNOUCHI Yasushi 7115aa8f8b
feat: customize symbols for the diagnostics component (#112) 2021-02-22 12:43:51 +01:00
hoob3rt ee3c7225b8 fix: removed redundant theme 2021-02-22 02:56:49 +01:00
Hubert Pelczarski 6eeeb16ed4
feat: diagnostics support (#95) 2021-02-22 01:59:35 +01:00
Shadman 3b36b5a151
fix: signify highlight fix (#108) 2021-02-22 00:07:44 +01:00