Closed chmanie closed 1 year ago
As you can probably guess, I don't use Nix and so can't reproduce. You can set caching = false
in the config which might help?
Would this have anything to do with permissions within Nix?
MrJones uses the theme as well as Nix. Could be worth checking out his config: https://github.com/mrjones2014/dotfiles/blob/7c9dabb2428964ee21330d1ae16fca5594f65318/nvim/lua/my/configure/theme.lua#L2
Ah yeah, but Mrjones is using lazy instead of the nix vim plugins. I'll take a look at the issue when I have time and will report back. Maybe I can even fix it somehow :)
FWIW @chmanie I love Nix but IMHO it's not worth the headache of trying to use Nix to manage Neovim plugins. I just link my Lua config via Nix.
I find that you lose a lot of functionality and run into a lot of weird edge cases when trying to install and configure Neovim plugins via Nix.
See my neovim.nix setup file. It pretty much just installs external dependencies and then links my Lua config.
Also based on the error message, that error should not be possible on latest plugin version, given this line of code.
I'm not entirely sure how the nixpkgs
versions of Neovim plugins are packaged but it seems you aren't on latest plugin version (another reason I choose not to use Nix to manage them 😛)
Yeah, you're right. Let's close this. I might be switching over to Lazy at some point anyways.
Your
minimal.lua
configError messages
Describe the bug
The above error message shows when starting up or when running
:OnedarkCache
. Please note that I'm in Nix and am using the latestvimPlugin
version of this theme. I could reproduce it using the minimal config, but after a few times opening and closing the error was gone (it does seem to be a caching issue). When using my default vim config, this error shows every time neovim is opened.Sadly I could not reproduce it in a non-nix system.
Reproduce the bug
Be on nixOS with Neovim installed and run the above command to use the given minimal config.
Final checks
minimal.lua
config file above and still get the issue:checkhealth treesitter