-
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: migrate
plugin/*.vim
-> plugin/*.lua
Using Lua instead provides a few small benefits in this case (bytecode compilation/caching, `require()` caching, vim command descriptions, LSP, standard file format, etc.), and it shouldn't cause any issues since we already don't support vim.
- Loading branch information
Showing
14 changed files
with
34 additions
and
30 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,9 @@ | ||
lua << EOF | ||
|
||
if vim.g.github_theme_debug then | ||
require("github-theme.util.reload")() | ||
require('github-theme.util.reload')() | ||
end | ||
require("github-theme.config").set_theme('github_dark') | ||
require("github-theme").load() | ||
require('github-theme.config').set_theme('github_dark') | ||
require('github-theme').load() | ||
|
||
EOF |
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,9 @@ | ||
lua << EOF | ||
|
||
if vim.g.github_theme_debug then | ||
require("github-theme.util.reload")() | ||
require('github-theme.util.reload')() | ||
end | ||
require("github-theme.config").set_theme('github_dark_colorblind') | ||
require("github-theme").load() | ||
require('github-theme.config').set_theme('github_dark_colorblind') | ||
require('github-theme').load() | ||
|
||
EOF |
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,9 @@ | ||
lua << EOF | ||
|
||
if vim.g.github_theme_debug then | ||
require("github-theme.util.reload")() | ||
require('github-theme.util.reload')() | ||
end | ||
require("github-theme.config").set_theme('github_dark_default') | ||
require("github-theme").load() | ||
require('github-theme.config').set_theme('github_dark_default') | ||
require('github-theme').load() | ||
|
||
EOF |
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 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,9 @@ | ||
lua << EOF | ||
|
||
if vim.g.github_theme_debug then | ||
require("github-theme.util.reload")() | ||
require('github-theme.util.reload')() | ||
end | ||
require("github-theme.config").set_theme('github_light') | ||
require("github-theme").load() | ||
require('github-theme.config').set_theme('github_light') | ||
require('github-theme').load() | ||
|
||
EOF |
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,9 @@ | ||
lua << EOF | ||
|
||
if vim.g.github_theme_debug then | ||
require("github-theme.util.reload")() | ||
require('github-theme.util.reload')() | ||
end | ||
require("github-theme.config").set_theme('github_light_colorblind') | ||
require("github-theme").load() | ||
require('github-theme.config').set_theme('github_light_colorblind') | ||
require('github-theme').load() | ||
|
||
EOF |
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,9 @@ | ||
lua << EOF | ||
|
||
if vim.g.github_theme_debug then | ||
require("github-theme.util.reload")() | ||
require('github-theme.util.reload')() | ||
end | ||
require("github-theme.config").set_theme('github_light_default') | ||
require("github-theme").load() | ||
require('github-theme.config').set_theme('github_light_default') | ||
require('github-theme').load() | ||
|
||
EOF |
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 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
local api = vim.api | ||
|
||
api.nvim_create_user_command('GithubThemeCompile', function(_info) | ||
require('github-theme').compile(true) | ||
end, { desc = 'Forcefully recompile settings and persist to fs', force = true }) | ||
|
||
api.nvim_create_user_command('GithubThemeInteractive', function(_info) | ||
require('github-theme.interactive').attach() | ||
end, { desc = 'Reload on buffer save', force = true }) |
This file was deleted.
Oops, something went wrong.