nvim-lualine / lualine.nvim

A blazing fast and easy to configure neovim statusline plugin written in pure lua.
MIT License
6.03k stars 464 forks source link

Bug: There was a bug. #1182

Open suangshuo opened 8 months ago

suangshuo commented 8 months ago

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?

sgarg26 commented 8 months ago

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 commented 5 months ago

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.