-
-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Showing
1 changed file
with
16 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters