Commit Graph

51 Commits

Author SHA1 Message Date
yasudanaoya 2bddaf0508
feat: add onedark/onelight command mode color (#575)
* feat: add onedark/onelight command mode color

* fix: typo
2022-02-07 20:55:33 +06:00
shadmansaleh 6f28adb21f chore: autogen (vimdocs+formating) 2022-02-01 08:04:03 +00:00
Illia Danko 9208bae98f
fix: use one theme colors from rakr/vim-one (#556)
* fix: use one theme colors from rakr/vim-one

Co-authored-by: Illia Danko <illia@aigent.com>
2022-01-24 22:36:25 +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
shadmansaleh 9f556fdf37 chore: add license statements and update benchmarks 2021-09-20 17:48:22 +06:00
shadmansaleh f7702d8841 enhance: check for new diagnostics highlight groups
- Now DiagnosticError, DiagnosticWarn, DiagnosticInfo, DiagnosticHint
  are also consider3d for default highlight in diagnostics component.
- Moved getHl from auto theme to utils as extract_color_from_hllist

closes #56
2021-09-17 15:28:30 +06:00
Matthew Toohey 1f4df948c4
fix: handle capitalized letters in pywal colors (#40)
Co-authored-by: mtoohey31 <mtoohey31@users.noreply.github.com>
2021-09-09 05:25:31 +06:00
github-actions[bot] a26ffaa8ed
chore: formated with stylua (#36)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-09-04 23:18:50 +06:00
Matthew Toohey 7185c61e9e
feat: pywal theme (#35)
* feat: pywal theme
* docs: add pywal screenshots

Co-authored-by: mtoohey31 <mtoohey31@users.noreply.github.com>
2021-09-04 23:17:19 +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
Shadman 4042e837f8
chore: use stylua for formating
* Switch to stylua for formating

* Change lua-format ignore to stylua ignore.

* Add workflow for formating with stylua
2021-09-04 00:20:34 +06:00
Ashish Panigrahi 09169739fa added powerline-dark theme
* added replace colorscheme

 * updated screenshots

 * added patched font screenshots
2021-08-28 23:29:51 +06:00
Dennis B 7b7fe983f8 Add moonfly theme 2021-08-20 14:15:31 +10:00
shadmansaleh 32727039a9 |DEPRECATION| enhance(themes): Auto colorscheme detection and more
- `auto` theme now auto loads available theme for colorschme based on
  g:color_name . If that fails then it generates a theme for that
  colorschme like before.
- Theme from external source is preferred over bundled version in
  lualine . This means if user has a colorschme that provided the same
  theme as lualine the one from colorschme will be loaded.
- Default value of theme is changed to `auto` from `gruvbox`.
- Now when users theme from config fails lualine will fallbavk to
  `auto`. If `auto` fails then lualine will fallback to `gruvbox`
- Some themes have been renamed to their actual name (g:color_name).
  older names have been deprecated. [DEPRECATION]
    oceanicnext -> OceanicNext
    papercolor -> PaperColor
    tomorrow -> Tomorrow
    gruvbox_material -> gruvbox-material
    modus_vivendi -> modus-vivendi
- A few more adaptive themes added (aye, gruvbox, iceberg)
- Updated THEMES.md to reflect changes in theme name
2021-08-14 12:35:08 +06:00
shadmansaleh fac96d71cc [Breaking] Refactor: switch to %{%expr%} from %!expr
Huge change to internal mechanics.
- Now %{%expr%} blocks are used for evaluating statusline instead of
  %!expr . Pros for this is statusline is evaluated on current win and
  buf context instead of active win & bufs context.
- Now all components branch & diff(These two are cached) including users
  function components updates on inactive status.
  - now components update status and function components receive an
    argument (is_focused) when called. It indicates whether it's running
    for active or inactive statusline.
- Now lualine no longer aggrasively takes over 'statusline' option.
  instead it sets the global version of statusline option. So it's
  possible to unset it to hide lualine . Or set buffer local version
  of that option to have different statusline then lualine on thay
  buffer
- Switch vim.o to vim.go or vim.opt.
- BugFix autcommands being set everytime an instence of diff or branch
  component is created
- Added new utils functions define_autocmd & is_focused
- Remove utils function lualine_eval
- Removed hacky require cache modification from component.lua
2021-08-08 22:50:17 +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
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
Duc Pham 8b2b825043
feat: gruvbox light theme (#250) 2021-05-19 12:57:57 +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 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
agarof 6ba2b80b59
Fix themes incorrectly setting the bold attribute (#194) 2021-04-26 00:24:29 +02: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 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
Evan Travers e057def23e
forest_night -> everforest (#152)
https://github.com/sainnhe/everforest/issues/43
2021-03-31 03:35:38 +02:00
hoob3rt b31b66fa79 refactor: applied lua-format to all files 2021-03-16 00:37:46 +01:00
Shadman 87899eefc5
feat: add automatic theme generation (#104) 2021-03-02 14:01:34 +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
Nick Friday ed7d186987
fix: made dracula theme similar to other themes (#121) 2021-02-27 17:13:51 +01:00
Shadman e59ac51ca9
refactor: removed cterm colors from themes (#115) 2021-02-22 21:28:29 +01:00
hoob3rt ee3c7225b8 fix: removed redundant theme 2021-02-22 02:56:49 +01:00
Hubert Pelczarski 55c0f0fe9a docs: added license to all source files 2021-02-13 01:03:57 +01:00
Shadman 0325203fa9
More themes (#74)
* Adding themes

- Tomorrow.lua
- ayu_dark.lua
- ayu_light.lua
- ayu_mirage.lua
- iceberg_dark.lua
- iceberg_light.lua
- jellybeans.lua
- oceanicnext.lua
- seoul256.lua

Co-authored-by: hoob3rt <41551030+hoob3rt@users.noreply.github.com>
2021-02-07 22:54:04 +01:00
Shadman 66ab809e0e
Update onedark+onelight theme (#70) 2021-02-05 09:48:05 +01:00
Shadman 1ade51b53d
Adding gruvbox_metarial theme (#72)
* Adding gruvbox_metarial theme

Co-authored-by: hoob3rt <41551030+hoob3rt@users.noreply.github.com>
2021-02-04 22:07:57 +01:00
Hennadii Chernyshchyk 71452fd42e
Add codedark theme (#81)
* Add codedark theme
2021-02-04 21:46:32 +01:00
Shadman a9937db37f
Add nightfly theme (#71)
* Add nightfly theme

Co-authored-by: hoob3rt <41551030+hoob3rt@users.noreply.github.com>
2021-02-04 21:10:25 +01:00
Shadman 5eb42599ce
Add papercolor theme (#69)
* Adding papercolor theme

* Add papercolor light
2021-02-04 21:07:07 +01:00
Shadman d904b753a8
Add 16color theme (#66)
* Adding 16color theme
2021-02-04 21:04:41 +01:00
Shadman 4456e5ff4a
Adding material theme (#65)
* Adding material theme

Co-authored-by: hoob3rt <41551030+hoob3rt@users.noreply.github.com>
2021-02-04 21:02:53 +01:00
Shadman 0a7b9ff0cb
Adding wombat theme (#64)
* Adding wombat theme

Co-authored-by: hoob3rt <41551030+hoob3rt@users.noreply.github.com>
2021-02-04 20:57:38 +01:00
Shadman 82e0d7d2f5
Add molokai theme (#62)
* Added molokai theme
2021-02-04 20:54:36 +01:00
hoob3rt 8c09fc8228 removed print from solarized 2021-01-31 08:29:14 +01:00
Shadman df0d5f99cb
Added solarized theme (#63)
* Added solarized theme
2021-01-31 08:27:55 +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
Brandon 24db1a62e8
Added forest_night theme (#30)
* Add forest_night theme

Ported from forest-night's [lightline
theme](https://github.com/sainnhe/forest-night/blob/master/autoload/lightline/colorscheme/forest_night.vim).

* Add forest_night to THEMES.md
2021-01-05 00:15:03 +01:00
Shadman 4fb9f90f74
Added powerline theme (#23)
* Added a powerline theme

Credit: Took some help from lightline powerline theme

* Updated THEMES.md

* Small tweek to colors

* swaped onedark and powerline in THEMES.md
2021-01-04 13:00:03 +01:00
Shadman 3a82c3b345
Added nord theme (#24)
* Added nord theme

Credit : Ported from lightline nord theme

* Added nord to THEMES.md

* Checked nord theme in README.md
2021-01-04 12:15:39 +01:00
hoob3rt 39dc034335 updated style to be inline with vim.api 2021-01-04 02:14:29 +01:00
Kenneth Lear 08d2879f9b
Porting onedark theme (#8)
* Porting onedark theme

* Fixed incorrect foreground background configuration for onedark theme. Also set command mode in onedark theme to be normal

* Adding onedark theme to available themes list in README
2021-01-02 20:07:08 +01:00
anguye21 fb8154582c
Added dracula theme (#12)
* Added dracula theme

* Converted from 4 spaces to 2
2021-01-02 18:35:36 +01:00