Closed IzzyDLP closed 9 months ago
Thank you for opening this issue! I will check it in a few days as soon as I have time :)
Oh wait I think I've found the problem.
"themeConfigFile" should be declared once outside the themes tag.
Try this code:
require("themery").setup({
themeConfigFile = "/home/name/.config/nvim/lua/blah/plugins/sample-config.lua",
themes = {{
name = "Day",
colorscheme = "gruvbox",
before = [[vim.opt.background = "light"]],
}, {
name = "Night",
colorscheme = "gruvbox",
before = [[vim.opt.background = "dark"]],
}}
})
And in the sample-config.lua (or in your own configuration file) put this text:
-- Themery block
-- end themery block
Closing due to inactivity. If the problem is not solved by the proposed solution, please feel free to reopen the issue.
I'm using the gruvbox theme and using themery gives an error of
Themery error: Could not open file or read: /home/name/.config/nvim/v:null
This is my current setup in themery.lua
require("themery").setup({ themes = {{ name = "Day", colorscheme = "gruvbox", before = [[vim.opt.background = "light"]], themeConfigFile = "/home/name/.config/nvim/lua/blah/plugins/day.lua" }, { name = "Night", colorscheme = "gruvbox", before = [[vim.opt.background = "dark"]], themeConfigFile = "/home/name/.config/nvim/lua/blah/plugins/night.lua" } } })