-
-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: minify colorscheme files in
colors/*.vim
Refactor and centralize all of the duplicated logic in each of the vim files in `colors/*.vim` into `require('github-theme').load()`. This removes duplication and moves all of the logic to Lua (file) where it is easier to maintain. Remove the deprecated 'github_dimmed' theme. This has been deprecated for over a year now, so it is probably a good idea to remove it. Plus it just wastes space and pollutes cmdline completion with an erroneous value/theme.
- Loading branch information
Showing
16 changed files
with
28 additions
and
123 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1 @@ | ||
lua << EOF | ||
|
||
if vim.g.github_theme_debug then | ||
require('github-theme.util.reload')() | ||
end | ||
require('github-theme.config').set_theme('github_dark') | ||
require('github-theme').load() | ||
|
||
EOF | ||
lua require('github-theme').load({ theme = 'github_dark' }) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1 @@ | ||
lua << EOF | ||
|
||
if vim.g.github_theme_debug then | ||
require('github-theme.util.reload')() | ||
end | ||
require('github-theme.config').set_theme('github_dark_colorblind') | ||
require('github-theme').load() | ||
|
||
EOF | ||
lua require('github-theme').load({ theme = 'github_dark_colorblind' }) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1 @@ | ||
lua << EOF | ||
|
||
if vim.g.github_theme_debug then | ||
require('github-theme.util.reload')() | ||
end | ||
require('github-theme.config').set_theme('github_dark_default') | ||
require('github-theme').load() | ||
|
||
EOF | ||
lua require('github-theme').load({ theme = 'github_dark_default' }) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1 @@ | ||
lua << EOF | ||
|
||
if vim.g.github_theme_debug then | ||
require('github-theme.util.reload')() | ||
end | ||
require('github-theme.config').set_theme('github_dark_dimmed') | ||
require('github-theme').load() | ||
|
||
EOF | ||
lua require('github-theme').load({ theme = 'github_dark_dimmed' }) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1 @@ | ||
lua << EOF | ||
|
||
if vim.g.github_theme_debug then | ||
require('github-theme.util.reload')() | ||
end | ||
require('github-theme.config').set_theme('github_dark_high_contrast') | ||
require('github-theme').load() | ||
|
||
EOF | ||
lua require('github-theme').load({ theme = 'github_dark_high_contrast' }) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1 @@ | ||
lua << EOF | ||
|
||
if vim.g.github_theme_debug then | ||
require('github-theme.util.reload')() | ||
end | ||
require('github-theme.config').set_theme('github_dark_tritanopia') | ||
require('github-theme').load() | ||
|
||
EOF | ||
lua require('github-theme').load({ theme = 'github_dark_tritanopia' }) |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1 @@ | ||
lua << EOF | ||
|
||
if vim.g.github_theme_debug then | ||
require('github-theme.util.reload')() | ||
end | ||
require('github-theme.config').set_theme('github_light') | ||
require('github-theme').load() | ||
|
||
EOF | ||
lua require('github-theme').load({ theme = 'github_light' }) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1 @@ | ||
lua << EOF | ||
|
||
if vim.g.github_theme_debug then | ||
require('github-theme.util.reload')() | ||
end | ||
require('github-theme.config').set_theme('github_light_colorblind') | ||
require('github-theme').load() | ||
|
||
EOF | ||
lua require('github-theme').load({ theme = 'github_light_colorblind' }) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1 @@ | ||
lua << EOF | ||
|
||
if vim.g.github_theme_debug then | ||
require('github-theme.util.reload')() | ||
end | ||
require('github-theme.config').set_theme('github_light_default') | ||
require('github-theme').load() | ||
|
||
EOF | ||
lua require('github-theme').load({ theme = 'github_light_default' }) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1 @@ | ||
lua << EOF | ||
|
||
if vim.g.github_theme_debug then | ||
require('github-theme.util.reload')() | ||
end | ||
require('github-theme.config').set_theme('github_light_high_contrast') | ||
require('github-theme').load() | ||
|
||
EOF | ||
lua require('github-theme').load({ theme = 'github_light_high_contrast' }) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1 @@ | ||
lua << EOF | ||
|
||
if vim.g.github_theme_debug then | ||
require('github-theme.util.reload')() | ||
end | ||
require('github-theme.config').set_theme('github_light_tritanopia') | ||
require('github-theme').load() | ||
|
||
EOF | ||
lua require('github-theme').load({ theme = 'github_light_tritanopia' }) |
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
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
This file was deleted.
Oops, something went wrong.