Commit Graph

98 Commits

Author SHA1 Message Date
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