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: There was a bug. #1182

Open
suangshuo opened this issue Jan 15, 2024 · 2 comments
Open

Bug: There was a bug. #1182

suangshuo opened this issue Jan 15, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@suangshuo
Copy link

This error occurred after updating lualine with lazy:
E5113: Error while calling lua chunk: ...k/packer/start/lualine.nvim/lua/lualine/utils/loader.lua:224: lua/lualine/themes/gruvbox/init.lua Not found
stack traceback:
[C]: in function 'error'
...k/packer/start/lualine.nvim/lua/lualine/utils/loader.lua:224: in function 'get_theme_from_config'
...nvim/site/pack/packer/start/lualine.nvim/lua/lualine.lua:265: in function 'setup_theme'
...nvim/site/pack/packer/start/lualine.nvim/lua/lualine.lua:634: in function 'setup'
/home/suangshuo/.config/nvim/lua/plug_config/lualine.lua:1: in main chunk
[C]: in function 'require'
/home/suangshuo/.config/nvim/init.lua:3: in main chunk
What can I do to solve the problem?

@suangshuo suangshuo added the bug Something isn't working label Jan 15, 2024
@sgarg26
Copy link

sgarg26 commented Jan 26, 2024

This isn't a bug. You say you tried with lazy.nvim? Did you use Packer before? Seems like you may have something left over from that. I'd deal with that first. Also I use the gruvbox theme like so:

return {
    "nvim-lualine/lualine.nvim",
    opts = {
        options = {
            theme = "gruvbox"
        }
    }
}

@Personator01
Copy link

I also experienced this issue, and the problem turned out to be that the lua file in which I called setup() was not running, so the plugin's themes were never added to the runtime path. After making sure that the setup file was included in my configuration, the problem went away.

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

3 participants