-
-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Override example throws E5113: attempt to index local 'override' (a nil value) #340
Comments
I think this is either outdated or a typo; it's supposed to be |
I've tried that as well, after checking the source, it also doesn't work. |
Change |
Right, changed but that also didn't work :/ |
hmmmm the example doesn't work for me either, but using local palette = require('github-theme.palette').load('github_dark_default')
require('github-theme').setup({
groups = { all = { WinSeparator = { fg = palette.gray.base } } },
})
vim.cmd.colorscheme('github_dark_default') Also make sure you are on the latest commit or release. You may also want to try removing the cache dir (or, run |
- Hash entire config instead of just the table passed to `setup()`. This helps to ensure that a re-compile occurs when overrides are set outside of `setup()`. - Loading/sourcing colorscheme now causes re-compilation if config or overrides have changed, even if `setup()` has been called before. - Clear `vim.g.colors_name` before setting `vim.o.background` so that colorscheme is not reloaded recursively when setting `vim.o.background` (as opposed to using a variable to check for nested colorscheme load, which is what we were doing before). - fix(compiler): always write hash to filesystem whenever a compilation occurs, incl when `require('github-theme').compile()` is called directly. Related: projekt0n#262, projekt0n#340, projekt0n#341 Please enter the commit message for your changes. Lines starting th '%' will be ignored, and an empty message aborts the commit.
- Hash entire config instead of just the table passed to `setup()`. This helps to ensure that a recompilation occurs when overrides are set outside of `setup()`. - Loading/sourcing colorscheme now causes recompilation if config or overrides have changed, even if `setup()` has been called before. - Clear `vim.g.colors_name` before setting `vim.o.background` so that colorscheme is not reloaded recursively when setting `vim.o.background` (as opposed to using a variable to check for nested colorscheme load, which is what we were doing before). - fix(compiler): always write hash to filesystem when a compilation occurs, incl. when `require('github-theme').compile()` is called directly. Related: projekt0n#262, projekt0n#340, projekt0n#341 Please enter the commit message for your changes. Lines starting th '%' will be ignored, and an empty message aborts the commit.
- Hash entire config instead of just the table passed to `setup()`. This helps to ensure that a recompilation occurs when overrides are set outside of `setup()`. - Loading/sourcing colorscheme now causes recompilation if config or overrides have changed, even if `setup()` has been called before. - Clear `vim.g.colors_name` before setting `vim.o.background` so that colorscheme is not reloaded recursively when setting `vim.o.background` (as opposed to using a variable to check for nested colorscheme load, which is what we were doing before). - fix(compiler): always write hash to filesystem when a compilation occurs, incl. when `require('github-theme').compile()` is called directly. Related: #262, #340, #341
This should be fixed now and the docs have been updated. |
Example in docs:
github-nvim-theme/doc/github-nvim-theme.txt
Line 100 in 4f44a5c
My code:
The text was updated successfully, but these errors were encountered: