NLKNguyen / papercolor-theme

:art: Light & Dark Vim color schemes inspired by Google's Material Design
MIT License
2.71k stars 239 forks source link

Not able to load the theme in lazy plugin manager #204

Open AnkurAlpha opened 5 months ago

AnkurAlpha commented 5 months ago

I am not able load the the theme in lazy plugin manager, it was working great in packer it doesn't works in lazy here are my configs :

function ColorMyPencils(color)
    color = "PaperColor"
    vim.cmd.colorscheme(color)

    vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
    vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
end

return {
    {
        "NLKNguyen/papercolor-theme",
        priority = 1000,
        config = function()
             require("papercolor").setup({
             })
            ColorMyPencils()
        end
    },

}

It gives me an error like papercolor is not found

Any kind of help will be appreciated. Thanks in advance :slightly_smiling_face:

mattpascoe commented 2 weeks ago

I was able to get mine to not have the error with the following:

  {
    'NLKNguyen/papercolor-theme',
    priority = 1000,
    config = function()
      -- Blank to address startup error
    end,
    init = function()
      vim.opt.termguicolors = true
      vim.cmd.colorscheme 'PaperColor'
    end,
  },