-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
Lua error when using configuration options #29
Comments
Are you using nvim >= 0.5? |
Yes, using neovim 0.5 |
Can you able to share the nvim config? |
Here is the minimal nvim config: call plug#begin('~/.vim/plugged')
Plug 'projekt0n/github-nvim-theme'
call plug#end()
lua << EOF
require('github-theme').setup({
themeStyle = 'dimmed'
})
EOF running NVIM v0.5.0
Build type: Release
LuaJIT 2.1.0-beta3
Compilation: clang -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -O2 -DNDEBUG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/tmp/neovim-20210702-14987-rep9di/neovim-0.5.0/build/config -I/tmp/neovim-20210702-14987-rep9di/neovim-0.5.0/src -I/usr/local/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/usr/local/opt/gettext/include -I/tmp/neovim-20210702-14987-rep9di/neovim-0.5.0/build/src/nvim/auto -I/tmp/neovim-20210702-14987-rep9di/neovim-0.5.0/build/include
Compiled by brew@BigSur
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/local/Cellar/neovim/0.5.0/share/nvim"
Run :checkhealth for more info |
I tried your config with nvim-nightly. It's working fine. I tweaked the way to assign global variables on my fork. Give it a try. call plug#begin('~/.vim/plugged')
Plug 'ful1e5/github-nvim-theme', { 'branch': 'refactor/config.lua' }
call plug#end()
lua << EOF
require('github-theme').setup({
themeStyle = 'dimmed'
})
EOF |
lt changes the theme without error now, but I noticed it overwrites some configs that are declared before it. |
That configs are related to |
I pushed 9fe4e90 on |
Sorry, just had time to look into this again.
This seems to work perfectly fine now! Thanks for this! 🎉 |
fixed #29: refactored lua/github-theme/config.lua
On
init.vim
after installing the plugin:returns an error
Using a minimal neovim config also returns a similar error.
For the context, this works fine
The text was updated successfully, but these errors were encountered: