Skip to content
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

[BUG] Alpha "attempt to index a boolean" error on load on aarch64-linux #1486

Closed
1 task done
edrobertsrayne opened this issue May 3, 2024 · 2 comments
Closed
1 task done
Labels
bug Something isn't working

Comments

@edrobertsrayne
Copy link

Field Description
Plugin alpha
Nixpkgs unstable
  • I have read the FAQ and my bug is not listed there.

Description

My Nixvim config works absolutely fine on my x86_64-linux and x86_64-darwin systems. However, on my Raspberry Pi 4, nixvim complains about an error in the generated init.lua file if the alpha plugin is enabled.

Error detected while processing /nix/store/jdzq7nyk6a1azxs535agrrxawp4mxlbg-init.lua:
E5113: Error while calling lua chunk: /nix/store/jdzq7nyk6a1azxs535agrrxawp4mxlbg-init.lua:18: attempt to index a bo
olean value
stack traceback:
        /nix/store/jdzq7nyk6a1azxs535agrrxawp4mxlbg-init.lua:18: in main chunk
Press ENTER or type command to continue

The generated init.lua looks like this:

vim.cmd([[




]])

vim.loader.disable()

-- Ignore the user lua configuration
vim.opt.runtimepath:remove(vim.fn.stdpath("config")) -- ~/.config/nvim
vim.opt.runtimepath:remove(vim.fn.stdpath("config") .. "/after") -- ~/.config/nvim/after
vim.opt.runtimepath:remove(vim.fn.stdpath("data") .. "/site") -- ~/.local/share/nvim/site

vim.cmd([[

]])
require("alpha").setup(require("alpha.themes.vim-startify-theme").config)

These are my current configurations for NixOS and the full MRE for this bug.

Minimal, Reproducible Example (MRE)

programs.nixvim = {
  plugins.alpha = {
    enable = true;
    theme = "vim-startify-theme";
  }
}
@edrobertsrayne edrobertsrayne added the bug Something isn't working label May 3, 2024
@GaetanLepage
Copy link
Collaborator

Hello !
Is this issue still happening ?

@edrobertsrayne
Copy link
Author

Everything is building and working fine now both in home manager and a flake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants