Commit Graph

21 Commits

Author SHA1 Message Date
shadmansaleh 82f68c42df Enhance: Cterm colors only loaded when termguicolors = false 2021-04-12 21:59:55 +06:00
Shadman 1b81b0021f
Refactor: Components now use OOP style (#141) 2021-04-11 10:20:41 +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
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 b31b66fa79 refactor: applied lua-format to all files 2021-03-16 00:37:46 +01:00
shadmansaleh b79fd4cc24 Bug fix: componnet highlight not blending 2021-03-14 20:13:46 +06:00
Shadman 8624f7c14e
Feat: add configuration in viml and status function (#114) 2021-03-02 13:58:34 +01:00
Shadman e59ac51ca9
refactor: removed cterm colors from themes (#115) 2021-02-22 21:28:29 +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 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
Shadman 823665c511
Wider range of mode support (#57)
* Wider range of mode support

* Remove unnecessary entry in modes

Co-authored-by: hoob3rt <pelczarskihubert@gmail.com>
2021-01-11 04:52:34 +01:00
Shadman 72e5c71ebd
Bug fix Theme not rendered properly (#54) 2021-01-09 12:01:02 +01:00
Shadman 75a9c5c317
Handle undefined mode && fallback to normal mode highlighting (#47) 2021-01-08 04:52:30 +01:00
Shadman 7460fe5aa2
Added notermguicolor support and special effects (#27)
* Added notermguicolor support and special effects
* Added notermgui support
* Exposed special parameters for highlight(like bold,italic) to themes
  with gui like to bold "B" in normal mode do normal.b.gui = 'bold'
* Changed CONTRIBUTING.md to reflect current notermguicolor support
* Added calculating cterm values from rgb
* refactored highlight function
* Removed 'bold' default for a element
* Updated themes
* Adding function genarated cterm values to themes
* Updating CONTRIBUTING.md
* made colorschemes more compact

Co-authored-by: hoob3rt <pelczarskihubert@gmail.com>
2021-01-08 02:35:09 +01:00
hoob3rt 84b554f3bf added select mode 2021-01-06 14:52:05 +01:00
Shadman 6da4406a5a
Themes now fallback to normal mode theme (#28)
* Themes now fallback to normal mode theme

* Refactored apply_default function

* refactoring apply defaults
2021-01-05 16:08:56 +01:00
hoob3rt 39dc034335 updated style to be inline with vim.api 2021-01-04 02:14:29 +01:00
Eli W. Hunter b8ad8a13b2
Use table.concat instead of string concatentation (#7) 2021-01-03 20:11:22 +01:00
hoob3rt fa6aa3c324 initial lualine setup 2020-12-30 15:48:51 +01:00