NvChad / base46

NvChad's base46 theme plugin with caching ( Total re-write )
Other
209 stars 204 forks source link

Adding custom theme. #271

Closed MubinMuhammad closed 10 months ago

MubinMuhammad commented 10 months ago

Describe the bug Assalamu alaikum, brother, I was trying to create a theme of my own called end (because the background color is very dark). I created a file in .config/nvim/lua/custom/themes/end.lua and tried to use it in the lua file. Here's the error with a screenshot: 20240103_18h59m52s_grim

Why can't I set "end" as a theme?

To Reproduce Steps to reproduce the behavior:

  1. Try creating a custom theme.

Expected behavior It should just work. And get the colors from end.lua.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

siduck commented 10 months ago

wa alaykum as salam, that warning you see isnt a big issue, doesnt affect anything. do colors from end.lua reflect?

MubinMuhammad commented 10 months ago

No, they don't.

siduck commented 10 months ago

share end.lua here, i'll test

MubinMuhammad commented 10 months ago

Here's the lua file:

-- place the file in /custom/themes/<theme-name>.lua
-- for example: custom/themes/end.lua

local M = {}

-- M.base_30 = {
-- }

M.base_16 = {
  base00 = "#050505",
  base01 = "#101010",
  base02 = "#101010",
  base03 = "#909090",
  base04 = "#050505",
  base05 = "#adadad",
  base06 = "#adadad",
  base07 = "#adadad",
  base08 = "#828fad",
  base09 = "#ada282",
  base0A = "#82acad",
  base0B = "#82acad",
  base0C = "#ada282",
  base0D = "#9782ad",
  base0E = "#ad9082",
  base0F = "#adadad"
}

M.type = "dark" -- light / dark

return M
siduck commented 10 months ago

base30 table is empty

MubinMuhammad commented 10 months ago

Ok, I just copied the base_30 of gruvchad and pasted it in end.lua. And it works fine. Thanks. Allah hafiz.