nvim-lualine/lualine.nvim

Bug: There was a bug.

suangshuo opened this issue · 2 comments

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?

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"
        }
    }
}

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.