Closed MauricioBorawski closed 4 months ago
Fixed in LAzyVim. Will make a new release later
I'm having the same problem with colorscheme.lua file. My colorscheme file is exactly like described by mauricio, it works fine if I don't load it, and lazy checkhealth is fine.
just made a new release
I'm having the same issue as well ! I'm also having trouble finding how to downgrade my lazy.nvim version, any tips on that? Also when will the release be available? Thanks!
the release is available ig https://github.com/LazyVim/LazyVim/releases/tag/v12.20.1
Indeed it has been released but even with the new commit, I'm getting the nil error. After debugging for a bit, I found that vim.g.bigfile_size is nil. I don't really understand well lua and the project to understand why it is nil sadly, especially when it seems defined properly in options.lua...
Do you want me to make a new issue or do you have an idea of what could be in play? Thanks!
well perhaps open an issue in lazyvim/lazyvim repo
@dylandjian that's just not possible. Are you really using LazyVim? Or did you copy/paste some things from LazyVim? Are you loading options manually somehow?
I may say that even with the last release I had the same problem. Still all configuration was ok until I wanted to load colorscheme.lua file.
Loaded my colorscheme as the example given in lazy.folke.io (and lazy=false) and works great with every theme I use, thanks @folke for your help 🙂. I'm no longer using LazyVim/LazyVim but I tried and loads fine if I split colorscheme and lazyvim config. Idk if you need to load your theme using lazyvim plugin but this is what it worked for me. @dylandjian
{
"folke/tokyonight.nvim",
lazy = false, -- make sure we load this during startup if it is your main colorscheme
priority = 1000, -- make sure to load this before all the other start plugins
config = function()
-- load the colorscheme here
vim.cmd([[colorscheme tokyonight]])
end,
},
Thanks for the fix @varo6 :heart:
For a bit more context, I was using LazyVim/LazyVim for the theme only too, I just removed it and used what @varo6 sent ! Thanks again
Seriously guys, why didn't you tell from the start? Would have helped not to waste that much time on this.
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.10.0 Build type: Release LuaJIT 2.1.1716656478
Operating system/version
arch-linux
Describe the bug
When opening any file this error shows up
After some debugging I notice that the error comes from changing my
colorscheme
After deleting the
colorscheme
option the errors doesn't show up (ofc I have no colors on my editor :sweat_smile: )Also I have tried using the default
lazy.vim
configuration and everything works fine, so I suspect that this is a problem with my configurationAlso I share the
checkhealth
promp if that's usefullSteps To Reproduce
This is my repo with my config
nvim
Expected Behavior
The error not to show up