github-nvim-theme icon indicating copy to clipboard operation
github-nvim-theme copied to clipboard

Packer cannot find the theme

Open Karsteski opened this issue 3 years ago • 2 comments

Using Packer to install the theme gives the following error:

Invalid configuration /home/karsteski/.config/lvim/config.lua
Vim(luafile):E5113: Error while calling lua chunk: /home/karsteski/.config/lvim/config.lua:118: module 'github-theme' not found
:
^Ino field package.preload['github-theme']No cache entry

Not sure what's happening there :/

Karsteski avatar Oct 01 '21 18:10 Karsteski

Also see this reddit thread, as others are having the same problem.

Thread

Karsteski avatar Oct 01 '21 18:10 Karsteski

if you use packer config like this

use {
  "hoob3rt/lualine.nvim",
  config = function()
    require("lualine").setup {
      options = {
        theme = "github"
        -- ... your lualine config
      }
    }
  end
}
use {
  "projekt0n/github-nvim-theme",
  after = "lualine.nvim",
  config = function()
    require("github-theme").setup({
      theme_style = "dark_default"
      -- your github config
    })
  end
}

after = 'lualine.nvim' is the problem, i don't know how packer handle things. but when you use specify after = 'someplugin' packer will install your plugin as opt, you can verify it on $HOME/.local/share/nvim/site/pack/packer/opt/ remove after then compile, clean, and install

gasacchi avatar Nov 28 '21 01:11 gasacchi

Closing due to inactivity. Can reopen later.

ful1e5 avatar May 05 '23 09:05 ful1e5