nordtheme.vim/colors
Julien Voisin 291e05d96f
Refactor theme configuration conditions (#295)
The conditions and default values of the theme configurations were quite
verbose so this commit improves them by...

- ...using inline ternary operators instead of if/else blocks to reduce
  the code overhead and make it way more readable.
- ...using Vim builtin `get` function [1] instead of if/else blocks.
- ...inlining the script-scoped `logWarning` function since it was only
  used once.
- ...grouping some blocks where it made sense.

[1]: https://vimhelp.org/builtin.txt.html#builtin.txt#get%28%29

GH-295


Co-authored-by: Sven Greb <development@svengreb.de>
2022-04-16 09:53:54 +02:00
..
nord.vim Refactor theme configuration conditions (#295) 2022-04-16 09:53:54 +02:00