-
Notifications
You must be signed in to change notification settings - Fork 235
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
Theme doesn't load on startup #117
Comments
PS: I dont get this issue when I keep everything the same but set gruvbox as colorscheme instead of onehalfdark. which is why I think runtimepath could be an issue |
@faraazahmad unfortunately this theme cannot be used in lua config, because 'rtp' option in packer will make it look for onehalf/vim/?.lua or onehalf/vim/init.lua. This is just how lua language works. I really like this theme, but without an entry point for lua interpreter it won't work. Plus, I doubt that this theme supports treesitter |
@faraazahmad you can check the alternative though, please write back, if you have any success with it https://github.com/CodeGradox/onehalf-lush |
@faraazahmad I tried the suggested to you theme, I can 100% say that it is robust. I compared it to a popular dracula theme, that some developers of treesitter use. Onehalf-lush gave me more clear syntax in tsx and typescript files. It was clear from far away what is html element, what is React Component, what is method call, what is constant, what is Type, what are JS keywords and operators. With the limited colorset of the onehalf theme I consider onehalf-lush theme do be a very good plugin Treesitter config: ensure_installed = {
"javascript",
"typescript",
"tsx",
"lua",
},
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
|
As a workaround, you run can leverage packer's config stanza use {
"sonph/onehalf",
rtp = "vim/",
config = function() vim.cmd("colorscheme onehalflight") end
} |
I'm using Lua and Packer to setup my Neovim 0.5. The theme installs and works great but when I launch nvim it gives this error
the weird thing is that the theme loads when I do
:source $MYVIMRC
At first I thought it was because the scheme was being set before packer can load it (#104) but that solution didn't work for me. Now I think it has something to do with my runtimepath.
Here's my config
init.lua
lua/plugins.lua
The text was updated successfully, but these errors were encountered: