No description
Find a file
Nikita Rudenko a7592dcc1d Fix user highlights not updated on theme toggling
Lua copies tables by reference, which leads to permanent replacements of
named colors to their absolute values in user highlight table.
Thus, when theme is toggled or changed, user highlights are not updated,
cause they are stuck with absolute values.
This commit does two thigs:
 * Copy user highlight tables by value
 * Add missing hl_add update in chadlights.lua
2022-07-29 14:19:41 +03:00
after/queries/lua polish themes | #67 #78 2022-06-01 00:51:53 +05:30
lua/base46 Fix user highlights not updated on theme toggling 2022-07-29 14:19:41 +03:00
.stylua.toml format files 2022-07-22 16:02:05 +00:00
base16-LICENSE Initial commit. 2019-10-04 16:27:38 -07:00
LICENSE Initial commit. 2019-10-04 16:27:38 -07:00
README.md Update README.md 2022-06-30 09:32:26 +05:30

NvChad theme plugin

  • This plugin's a whole re-write of Norcalli's plugin.

(Note: This theme plugin is supposed to be used along with NvChad only so watchout!)

Contribute for new themes

  • go to base46/themes and add your file, ex: atheme.lua
-- atheme.lua file be like 

local M = {}

M.base_30 = {
  -- some colors 
}

M.base_16 = {
  -- some colors 
}

vim.opt.bg = "dark" -- this can be either dark or light

M = require("base46").override_theme(M, "atheme")

return M

Understanding theme variables

black = usually your theme bg 
darker_black = 6% darker than black
black2 = 6% lighter than black

onebg = 10% lighter than black
oneb2 = 19% lighter than black
oneb3 = 27% lighter than black

grey = 40% lighter than black (the % here depends so choose the perfect grey!)
grey_fg = 10% lighter than grey
grey_fg2 = 20% lighter than grey
light_grey = 28% lighter than grey

baby_pink = 15% lighter than red or any babypink color you like!
line = 15% lighter than black 

nord_blue = 13% darker than blue 
sun = 8% lighter than yellow

statusline_bg = 4% lighter than black
lightbg = 13% lighter than statusline_bg
lightbg2 = 7% lighter than statusline_bg

folder_bg = blue color

(note : the above values are mostly approx values so its not compulsory that you have to use those exact numbers , test your theme i.e show it in the PR to get feedback from @siduck)