projekt0n / github-nvim-theme

GitHub's Neovim themes
MIT License
2.11k stars 106 forks source link

lua/github-theme/init.lua:87: attempt to index field 'experiments' (a nil value) #244

Closed rohit-kumar-j closed 1 year ago

rohit-kumar-j commented 1 year ago

Startup Error: (nightly version)

lua/github-theme/init.lua:87: attempt to index field 'experiments' (a nil value)

I think @ful1e5 's commit 880f22 broke something.

Experimental is a nil value. Can you provide a default config for experimental when we do require('github-theme').setup({}), or a default value of false for experimental if no config?

EDIT:

Temporary: use the 0.0.7 tag to use the stable version:

-- themes/github-theme.lua
require('github-theme').setup({})
-- (lazy.nvim)
{someplugin/plugin.nvim}
{
    'projekt0n/github-nvim-theme',
    lazy = false,
    tag  = '0.0.7',
},
caobo commented 1 year ago

@rohit-kumar-j Thank you very much. Now it works perfectly fine. But I think there's a typo in your settings "tag = '0.0.7'," → "tag = 'v0.0.7',".